Documentation ¶
Index ¶
- func DefaultRegistry() string
- func NewManifestSpec(image string, entries []manifesttypes.ManifestEntry) manifesttypes.YAMLInput
- func ParseArchVariant(platform string) (string, string)
- func ParseImageTag(repos string) (string, string)
- func ParseImageWithArchTag(ref string) (string, ocispec.Platform)
- type CopyImageOptions
- type CopyImagesToLocalModule
- type CopyImagesToRegistry
- type CopyImagesToRegistryModule
- type Image
- type Images
- type Index
- type Manifest
- type PullImage
- type PullModule
- type PushManifest
- type SaveImages
- type ShouldPushManifest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRegistry ¶ added in v3.1.7
func DefaultRegistry() string
DefaultRegistry is used to get default registry address.
func NewManifestSpec ¶
func NewManifestSpec(image string, entries []manifesttypes.ManifestEntry) manifesttypes.YAMLInput
func ParseArchVariant ¶
ParseArchVariant Ex: amd64 returns amd64, "" arm/v8 returns arm, v8
func ParseImageTag ¶
ParseImageTag Get a repos name and returns the right reposName + tag The tag can be confusing because of a port in a repository name.
Ex: localhost.localdomain:5000/samalba/hipache:latest
Types ¶
type CopyImageOptions ¶
type CopyImageOptions struct {
// contains filtered or unexported fields
}
func (*CopyImageOptions) Copy ¶
func (c *CopyImageOptions) Copy() error
type CopyImagesToLocalModule ¶
type CopyImagesToLocalModule struct { common.ArtifactModule ImageStartIndex int ImageTransport string }
func (*CopyImagesToLocalModule) Init ¶
func (c *CopyImagesToLocalModule) Init()
type CopyImagesToRegistry ¶
type CopyImagesToRegistry struct { common.KubeAction ImagesPath string ImageTransport string }
type CopyImagesToRegistryModule ¶
type CopyImagesToRegistryModule struct { common.KubeModule Skip bool ImagePath string ImageTransport string }
func (*CopyImagesToRegistryModule) Init ¶
func (c *CopyImagesToRegistryModule) Init()
func (*CopyImagesToRegistryModule) IsSkip ¶
func (c *CopyImagesToRegistryModule) IsSkip() bool
type Image ¶
type Image struct { RepoAddr string Namespace string NamespaceOverride string Repo string Tag string Group string Enable bool }
Image defines image's info.
func (Image) ImageNamespace ¶ added in v3.1.0
ImageNamespace is used to get image's namespace
func (Image) ImageRegistryAddr ¶ added in v3.1.0
ImageRegistryAddr is used to get image's registry address.
type PullImage ¶
type PullImage struct {
common.KubeAction
}
type PullModule ¶
type PullModule struct { common.KubeModule Skip bool }
func (*PullModule) Init ¶
func (p *PullModule) Init()
func (*PullModule) IsSkip ¶
func (p *PullModule) IsSkip() bool
type PushManifest ¶
type PushManifest struct {
common.KubeAction
}
type SaveImages ¶
type SaveImages struct { common.ArtifactAction ImageStartIndex int ImageTransport string }
type ShouldPushManifest ¶ added in v3.1.2
type ShouldPushManifest struct { common.KubePrepare ImageTransport string }
Click to show internal directories.
Click to hide internal directories.