fetcherconfig

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Fetchers []Fetcher `json:"fetchers"`
}

func Load

func Load(path string) (*Config, error)

func LoadFrom

func LoadFrom(r io.Reader) (*Config, error)

type Fetcher

type Fetcher struct {
	GitFetcher *GitFetcher `json:"gitfetcher,omitempty"`
	ObjFetcher *ObjFetcher `json:"objfetcher,omitempty"`
}

type File

type File struct {
	Path string `json:"path"`
	Mode int32  `json:"mode"`
}

type GitFetcher

type GitFetcher struct {
	MountPoint      string `json:"mountPoint"`
	CredentialsPath string `json:"credentialsPath"`
	Repository      string `json:"repository"`
	Ref             string `json:"ref"`
}

type ObjFetcher

type ObjFetcher struct {
	MountPoint      string          `json:"mountPoint"`
	CredentialsPath string          `json:"credentialsPath"`
	KeysPath        string          `json:"keysPath,omitempty"`
	Keys            map[string]File `json:"keys"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL