Documentation
¶
Index ¶
- type GroupYAML
- type MajorMinor
- type OCPImageConfig
- type OCPImageConfigContent
- type OCPImageConfigFrom
- type OCPImageConfigFromStream
- type OCPImageConfigPush
- type OCPImageConfigSource
- type OCPImageConfigSourceGit
- type OCPImageConfigSourceGitBRanch
- type OrgRepo
- type PublicPrivateMapping
- type StreamElement
- type StreamMap
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 ¶
func (MajorMinor) String ¶
func (mm MajorMinor) String() string
type OCPImageConfig ¶
type OCPImageConfig struct {
Mode string `json:"mode"`
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 OCPImageConfigPush ¶
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 {
Target string `json:"target"`
}
type PublicPrivateMapping ¶
type StreamElement ¶
type StreamMap ¶
type StreamMap map[string]StreamElement
Click to show internal directories.
Click to hide internal directories.