Documentation ¶
Index ¶
- type ImageController
- func (i *ImageController) ChangeVisibilityToPrivate(namespace, applicationName, componentName string) (*v1alpha1.ImageRepository, error)
- func (i *ImageController) CreateImageRepositoryCR(name, namespace, applicationName, componentName string) (*v1alpha1.ImageRepository, error)
- func (i *ImageController) GetImageName(namespace, componentName string) (string, error)
- func (i *ImageController) GetImageRepositoryCR(name, namespace string) (*v1alpha1.ImageRepository, error)
- func (i *ImageController) GetRobotAccounts(namespace, componentName string) (string, string, error)
- func (i *ImageController) IsVisibilityPublic(namespace, componentName string) (bool, error)
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
Click to show internal directories.
Click to hide internal directories.