imagecontroller

package
v0.0.0-...-8729abe Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageController

type ImageController struct {
	*kubeCl.CustomClient
}

func NewSuiteController

func NewSuiteController(kube *kubeCl.CustomClient) (*ImageController, error)

func (*ImageController) ChangeVisibilityToPrivate

func (i *ImageController) ChangeVisibilityToPrivate(namespace, applicationName, componentName string) (*v1alpha1.ImageRepository, error)

ChangeVisibilityToPrivate changes ImageRepository visibility to private

func (*ImageController) CreateImageRepositoryCR

func (i *ImageController) CreateImageRepositoryCR(name, namespace, applicationName, componentName string) (*v1alpha1.ImageRepository, error)

CreateImageRepositoryCR creates new ImageRepository

func (*ImageController) GetImageName

func (i *ImageController) GetImageName(namespace, componentName string) (string, error)

GetImageName returns the image repo name for the component

func (*ImageController) GetImageRepositoryCR

func (i *ImageController) GetImageRepositoryCR(name, namespace string) (*v1alpha1.ImageRepository, error)

GetImageRepositoryCR returns the requested ImageRepository object

func (*ImageController) GetRobotAccounts

func (i *ImageController) GetRobotAccounts(namespace, componentName string) (string, string, error)

GetRobotAccounts returns the pull and push robot accounts for the component

func (*ImageController) IsVisibilityPublic

func (i *ImageController) IsVisibilityPublic(namespace, componentName string) (bool, error)

IsVisibilityPublic returns true if imageRepository CR has spec.image.visibility == "public", otherwise false

Jump to

Keyboard shortcuts

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