Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher interface { Fetch() (*apiv1.ModuleReference, error) GetModuleRoot() string }
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func (*Local) GetModuleRoot ¶
type OCI ¶
type OCI struct {
// contains filtered or unexported fields
}
func (*OCI) Fetch ¶
func (f *OCI) Fetch() (*apiv1.ModuleReference, error)
Fetch copies the module contents to the destination directory. The artifact is pulled from the registry and its contents extracted to the destination dir.
func (*OCI) GetModuleRoot ¶
type Options ¶
type Options struct { // Source is the location of the module to fetch. Source string // Version is the version of the module to fetch. Version string // Destination is the location to store the fetched module. Destination string // CacheDir is the location to store the fetched module. CacheDir string // Creds is the credentials to use when fetching the module. Creds string // Insecure is a flag that indicates if the fetcher should allow use of insecure connections. Insecure bool // DefaultLocal is a flag that indicates if the fetcher should default to a Local fetcher if no other can be applied. DefaultLocal bool }
Click to show internal directories.
Click to hide internal directories.