images

package
v0.0.0-...-0a0ed6e Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApkoManifest

type ApkoManifest struct {
	Archs []string `yaml:"archs"`
}

Our miniature schema of the Apko manifest so we dont have to import it here

type Image

type Image struct {
	ImageName                   string `json:"imageName"`
	ImageStatus                 string `json:"imageStatus"`
	ImageSummaryJson            string `json:"imageSummaryJson"`
	ApkoConfig                  string `json:"apkoConfig"`
	ApkoKeyringAppend           string `json:"apkoKeyringAppend"`
	ApkoRepositoryAppend        string `json:"apkoRepositoryAppend"`
	ApkoAdditionalTags          string `json:"apkoAdditionalTags"`
	ApkoBaseTag                 string `json:"apkoBaseTag"`
	ApkoTargetTag               string `json:"apkoTargetTag"`
	ApkoTargetTagSuffix         string `json:"apkoTargetTagSuffix"`
	ApkoPackageVersionTag       string `json:"apkoPackageVersionTag"`
	ApkoPackageVersionTagPrefix string `json:"apkoPackageVersionTagPrefix"`
	ApkoPackageAppend           string `json:"apkoPackageAppend"`
	TestCommandExe              string `json:"testCommandExe"`
	TestCommandDir              string `json:"testCommandDir"`
	ExcludeTags                 string `json:"excludeTags"`
	UseTerraform                bool   `json:"useTerraform"`
	TerraformDirectory          string `json:"terraformDirectory"`
	ExcludeContact              bool   `json:"-"`
}

func ListAll

func ListAll(opts ...ListOption) ([]Image, error)

type ImageManifest

type ImageManifest struct {
	Ref            string                       `yaml:"ref"`
	Status         string                       `yaml:"status"`
	ExcludeContact bool                         `yaml:"excludeContact"`
	Terraform      *bool                        `yaml:"terraform,omitempty"`
	Variants       []ImageManifestVariant       `yaml:"versions"`
	Options        map[string]types.BuildOption `yaml:"options,omitempty"`
}

type ImageManifestVariant

type ImageManifestVariant struct {
	Apko ImageManifestVariantApko `yaml:"apko"`
}

type ImageManifestVariantApko

type ImageManifestVariantApko struct {
	Config          string                                  `yaml:"config"`
	Options         []string                                `yaml:"options"`
	ExtractTagsFrom ImageManifestVariantApkoExtractTagsFrom `yaml:"extractTagsFrom"`
	Tags            []string                                `yaml:"tags"`
	Subvariants     []ImageManifestVariantApkoSubvariant    `yaml:"subvariants"`
}

type ImageManifestVariantApkoExtractTagsFrom

type ImageManifestVariantApkoExtractTagsFrom struct {
	Package string   `yaml:"package"`
	Prefix  string   `yaml:"prefix"`
	Exclude []string `yaml:"exclude"`
}

type ImageManifestVariantApkoSubvariant

type ImageManifestVariantApkoSubvariant struct {
	Suffix  string   `yaml:"suffix"`
	Options []string `yaml:"options"`
}

type ListOption

type ListOption func(c *listConfig)

func WithDefaultRegistry

func WithDefaultRegistry(defaultRegistry string) ListOption

Jump to

Keyboard shortcuts

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