ocpbuilddata

package
v0.0.0-...-e0e1170 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupYAML

type GroupYAML struct {
	Sources         map[string]OCPImageConfigSourceGit `json:"sources"`
	PublicUpstreams []PublicPrivateMapping             `json:"public_upstreams,omitempty"`
}

type MajorMinor

type MajorMinor struct {
	Major string
	Minor string
}

func (MajorMinor) String

func (mm MajorMinor) String() string

type OCPImageConfig

type OCPImageConfig struct {
	Content        *OCPImageConfigContent `json:"content"`
	From           OCPImageConfigFrom     `json:"from"`
	Push           OCPImageConfigPush     `json:"push"`
	Name           string                 `json:"name"`
	SourceFileName string                 `json:"-"`
	Version        MajorMinor             `json:"-"`
	PublicRepo     OrgRepo                `json:"-"`
}

func LoadImageConfigs

func LoadImageConfigs(ocpBuildDataDir string, majorMinor MajorMinor) ([]OCPImageConfig, error)

LoadImageConfigs loads and dereferences all image configs from the provided ocp-build-data repo root

func (*OCPImageConfig) Dockerfile

func (oic *OCPImageConfig) Dockerfile() string

func (OCPImageConfig) PromotesTo

func (o OCPImageConfig) PromotesTo() string

func (*OCPImageConfig) Stages

func (oic *OCPImageConfig) Stages() ([]string, error)

type OCPImageConfigContent

type OCPImageConfigContent struct {
	Source OCPImageConfigSource `json:"source"`
}

type OCPImageConfigFrom

type OCPImageConfigFrom struct {
	Builder                  []OCPImageConfigFromStream `json:"builder"`
	OCPImageConfigFromStream `json:",inline"`
}

type OCPImageConfigFromStream

type OCPImageConfigFromStream struct {
	Stream string `json:"stream"`
	Member string `json:"member"`
}

type OCPImageConfigPush

type OCPImageConfigPush struct {
	Also           []string `json:"also,omitempty"`
	AdditionalTags []string `json:"additional_tags,omitempty"`
}

type OCPImageConfigSource

type OCPImageConfigSource struct {
	Dockerfile string `json:"dockerfile"`
	Alias      string `json:"alias"`
	Path       string `json:"path"`
	// +Optional, mutually exclusive with alias
	Git *OCPImageConfigSourceGit `json:"git,omitempty"`
}

type OCPImageConfigSourceGit

type OCPImageConfigSourceGit struct {
	URL    string                        `json:"url"`
	Branch OCPImageConfigSourceGitBRanch `json:"branch"`
}

type OCPImageConfigSourceGitBRanch

type OCPImageConfigSourceGitBRanch struct {
	Taget string `json:"target"`
}

type OrgRepo

type OrgRepo struct {
	Org  string
	Repo string
}

func (OrgRepo) String

func (o OrgRepo) String() string

type PublicPrivateMapping

type PublicPrivateMapping struct {
	Private string `json:"private"`
	Public  string `json:"public"`
}

type StreamElement

type StreamElement struct {
	Image         string   `json:"image"`
	UpstreamImage string   `json:"upstream_image"`
	Mirror        *bool    `json:"mirror"`
	Aliases       []string `json:"aliases,omitempty"`
}

type StreamMap

type StreamMap map[string]StreamElement

Jump to

Keyboard shortcuts

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