Documentation ¶
Index ¶
Constants ¶
View Source
const TypeImageCache string = "image_cache"
TypeImageCache is the resource string for a ImageCache resource
View Source
const TypeRegistry string = "container_registry"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageCache ¶
type ImageCache struct { // embedded type holding name, etc types.ResourceMetadata `hcl:",remain"` Registries []Registry `hcl:"registry,block" json:"registries,omitempty"` Networks ctypes.NetworkAttachments `hcl:"network,block" json:"networks,omitempty"` // Attach to the correct network // only when Image is specified }
ImageCache defines a structure for creating ImageCache containers
type Registry ¶ added in v0.5.60
type Registry struct { // embedded type holding name, etc types.ResourceMetadata `hcl:",remain"` Hostname string `hcl:"hostname" json:"hostname"` // Hostname of the registry Auth *RegistryAuth `hcl:"auth,block" json:"auth,omitempty"` // auth to authenticate against registry }
Registry defines a structure for registering additional registries for the image cache
type RegistryAuth ¶ added in v0.5.60
type RegistryAuth struct { Hostname string `hcl:"hostname,optional" json:"hostname,omitempty"` // Hostname for authentication, can be different from registry hostname Username string `hcl:"username" json:"username"` // Username for authentication Password string `hcl:"password" json:"password"` // Password for authentication }
RegistryAuth defines a structure for authenticating against a docker registry
Click to show internal directories.
Click to hide internal directories.