imagegraphgenerator

package
v0.0.0-...-8d994d8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReleaseAPPCIClusterPath      = "clusters/app.ci/"
	ReleaseMirrorMappingsPath    = "core-services/image-mirroring/"
	ReleaseCIOperatorConfigsPath = "ci-operator/config/"
)

Variables

This section is empty.

Functions

func NewFakeClient

func NewFakeClient() *fakeClient

Types

type AddImage

type AddImage struct {
	NumUIDs int            `graphql:"numUids"`
	Image   []ImagePayload `graphql:"image"`
}

type AddImageInput

type AddImageInput map[string]interface{}

type AddImagePayload

type AddImagePayload struct {
	AddImage AddImage `graphql:"addImage(input: $input)"`
}

type BranchRef

type BranchRef struct {
	ID string `graphql:"id"`
}

type Client

type Client interface {
	Mutate(context.Context, interface{}, map[string]interface{}) error
	Query(context.Context, interface{}, map[string]interface{}) error
}

type Image

type Image struct {
	ID             string                 `json:"id,omitempty"`
	Name           string                 `json:"name,omitempty"`
	ImageStreamRef string                 `json:"imageStreamRef,omitempty"`
	Namespace      string                 `json:"namespace,omitempty"`
	FromRoot       bool                   `json:"fromRoot,omitempty"`
	Source         string                 `json:"source,omitempty"`
	Branches       map[string]interface{} `json:"branches,omitempty"`
	Parent         *Image                 `json:"parent,omitempty"`
	Children       []Image                `json:"children,omitempty"`
}

type ImageFilter

type ImageFilter map[string]interface{}

type ImageInput

type ImageInput struct {
	Input []Image `json:"input,omitempty"`
}

type ImagePatch

type ImagePatch map[string]interface{}

type ImagePayload

type ImagePayload struct {
	ID string `graphql:"id"`
}

type ImageRef

type ImageRef struct {
	ID             string      `graphql:"id"`
	Name           string      `graphql:"name"`
	ImageStreamRef string      `graphql:"imageStreamRef"`
	Namespace      string      `graphql:"namespace"`
	FromRoot       bool        `graphql:"fromRoot"`
	Source         string      `graphql:"source"`
	Branches       []BranchRef `graphql:"branches"`
	Parents        []ImageRef  `graphql:"parents"`
	Children       []ImageRef  `graphql:"children"`
	MultiArch      bool        `graphql:"multiArch"`
}
type ImageStreamLink struct {
	Source      string
	Fullname    string
	Namespace   string
	ImageStream string
	Tag         string
}

type MirrorMapping

type MirrorMapping struct {
	Source      ImageStreamLink
	Destination ImageStreamLink
}

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

func NewOperator

func NewOperator(c Client, releaseRepoPath string) *Operator

func (*Operator) AddBranchRef

func (o *Operator) AddBranchRef(org, repo, branch string) error

func (*Operator) AddManifestImages

func (o *Operator) AddManifestImages() error

func (*Operator) Branches

func (o *Operator) Branches() map[string]string

func (*Operator) Load

func (o *Operator) Load() error

func (*Operator) OperateOnCIOperatorConfigs

func (o *Operator) OperateOnCIOperatorConfigs() error

func (*Operator) UpdateImage

func (o *Operator) UpdateImage(image api.ProjectDirectoryImageBuildStepConfiguration, baseImages map[string]api.ImageStreamTagReference, c api.PromotionTarget, branchID string, multiArch bool) error

func (*Operator) UpdateMirrorMappings

func (o *Operator) UpdateMirrorMappings() error

type UpdateImageInput

type UpdateImageInput map[string]interface{}

Jump to

Keyboard shortcuts

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