Documentation ¶
Index ¶
- Constants
- func FunctionFromImageName(image string) (function, namespace string, err error)
- func GetFunctionDeploymentList(config *rest.Config) (*appsv1.DeploymentList, error)
- func GetFunctionImage(d appsv1.Deployment) (reference.NamedTagged, error)
- func IsFunctionUpdating(config *rest.Config, name, namespace string) (bool, error)
- type NestedSet
- type RegistryClient
- type RegistryClientOptions
- type RepositoryClient
- type Tag
Constants ¶
View Source
const ( UsernameSecretKeyName = "username" PasswordSecretKeyName = "password" URLSecretKeyName = "registryAddress" )
Variables ¶
This section is empty.
Functions ¶
func FunctionFromImageName ¶
func GetFunctionDeploymentList ¶
func GetFunctionDeploymentList(config *rest.Config) (*appsv1.DeploymentList, error)
func GetFunctionImage ¶
func GetFunctionImage(d appsv1.Deployment) (reference.NamedTagged, error)
Types ¶
type NestedSet ¶
func NewNestedSet ¶
func NewNestedSet() NestedSet
func (NestedSet) AddKeyWithValue ¶
func (NestedSet) HasKeyWithValue ¶
type RegistryClient ¶
type RegistryClient interface { ImageRepository(imageName string) (RepositoryClient, error) ListRegistryImagesLayers() (NestedSet, error) ListRegistryCachedLayers() (NestedSet, error) Repositories() ([]string, error) }
func NewRegistryClient ¶
func NewRegistryClient(ctx context.Context, opts *RegistryClientOptions, l logr.Logger) (RegistryClient, error)
type RegistryClientOptions ¶
func ReadRegistryConfigSecretOrDie ¶
func ReadRegistryConfigSecretOrDie(resetConfig *rest.Config, secretName, namespace string) *RegistryClientOptions
type RepositoryClient ¶
type RepositoryClient interface { ListTags() ([]string, error) GetImageTag(tag string) (*Tag, error) DeleteImageTag(tagDigest digest.Digest) error ManifestService() distribution.ManifestService }
type Tag ¶
type Tag struct {
distribution.Descriptor
}
Click to show internal directories.
Click to hide internal directories.