Documentation ¶
Index ¶
- type ClientConfigInterface
- type ImageCtrl
- func (ic ImageCtrl) ExpandOktetoDevRegistry(tag string) string
- func (ic ImageCtrl) ExpandOktetoGlobalRegistry(tag string) string
- func (ic ImageCtrl) GetDevTagFromGlobal(image string) string
- func (ImageCtrl) GetRegistryAndRepo(tag string) (string, string)
- func (ImageCtrl) GetRepoNameAndTag(image string) (string, string)
- type ImageMetadata
- type OktetoImageReference
- type OktetoRegistry
- func (or OktetoRegistry) CloneGlobalImageToDev(imageWithDigest string) (string, error)
- func (or OktetoRegistry) GetImageMetadata(image string) (ImageMetadata, error)
- func (OktetoRegistry) GetImageReference(image string) (OktetoImageReference, error)
- func (or OktetoRegistry) GetImageTag(image, service, namespace string) string
- func (or OktetoRegistry) GetImageTagWithDigest(image string) (string, error)
- func (or OktetoRegistry) GetRegistryAndRepo(image string) (string, string)
- func (or OktetoRegistry) GetRepoNameAndTag(repo string) (string, string)
- func (or OktetoRegistry) HasGlobalPushAccess() (bool, error)
- func (or OktetoRegistry) IsGlobalRegistry(image string) bool
- func (or OktetoRegistry) IsOktetoRegistry(image string) bool
- type Port
- type Replacer
- type ReplacerConfigInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfigInterface ¶
type ClientConfigInterface interface { GetRegistryURL() string GetUserID() string GetToken() string IsInsecureSkipTLSVerifyPolicy() bool GetContextCertificate() (*x509.Certificate, error) GetServerNameOverride() string GetContextName() string GetExternalRegistryCredentials(registryHost string) (string, string, error) }
type ImageCtrl ¶
type ImageCtrl struct {
// contains filtered or unexported fields
}
func NewImageCtrl ¶
func NewImageCtrl(config imageConfig) ImageCtrl
func NewImageCtrlFromContext ¶
func NewImageCtrlFromContext(config imageConfig) ImageCtrl
func (ImageCtrl) ExpandOktetoDevRegistry ¶
ExpandOktetoDevRegistry translates okteto.dev
func (ImageCtrl) ExpandOktetoGlobalRegistry ¶
ExpandOktetoGlobalRegistry translates okteto.global
func (ImageCtrl) GetDevTagFromGlobal ¶
func (ImageCtrl) GetRegistryAndRepo ¶
GetRegistryAndRepo returns image tag and the registry to push the image
type ImageMetadata ¶
type OktetoImageReference ¶
type OktetoRegistry ¶
type OktetoRegistry struct {
// contains filtered or unexported fields
}
OktetoRegistry represents the registry
func NewOktetoRegistry ¶
func NewOktetoRegistry(config configInterface) OktetoRegistry
func (OktetoRegistry) CloneGlobalImageToDev ¶
func (or OktetoRegistry) CloneGlobalImageToDev(imageWithDigest string) (string, error)
CloneGlobalImageToDev clones an image from the global registry to the dev registry
func (OktetoRegistry) GetImageMetadata ¶
func (or OktetoRegistry) GetImageMetadata(image string) (ImageMetadata, error)
func (OktetoRegistry) GetImageReference ¶
func (OktetoRegistry) GetImageReference(image string) (OktetoImageReference, error)
GetImageReference returns the values to setup the image environment variables
func (OktetoRegistry) GetImageTag ¶
func (or OktetoRegistry) GetImageTag(image, service, namespace string) string
GetImageTag returns the image tag to build for a given services
func (OktetoRegistry) GetImageTagWithDigest ¶
func (or OktetoRegistry) GetImageTagWithDigest(image string) (string, error)
func (OktetoRegistry) GetRegistryAndRepo ¶
func (or OktetoRegistry) GetRegistryAndRepo(image string) (string, string)
GetRegistryAndRepo returns image and registry of a given image
func (OktetoRegistry) GetRepoNameAndTag ¶
func (or OktetoRegistry) GetRepoNameAndTag(repo string) (string, string)
GetRepoNameAndTag returns the repo name and tag of a given image
func (OktetoRegistry) HasGlobalPushAccess ¶
func (or OktetoRegistry) HasGlobalPushAccess() (bool, error)
HasGlobalPushAccess checks if the user has push access to the global registry
func (OktetoRegistry) IsGlobalRegistry ¶
func (or OktetoRegistry) IsGlobalRegistry(image string) bool
func (OktetoRegistry) IsOktetoRegistry ¶
func (or OktetoRegistry) IsOktetoRegistry(image string) bool
IsOktetoRegistry returns if an image tag is pointing to the okteto registry
type Replacer ¶
type Replacer struct {
// contains filtered or unexported fields
}
func NewRegistryReplacer ¶
func NewRegistryReplacer(config ReplacerConfigInterface) Replacer
type ReplacerConfigInterface ¶
type ReplacerConfigInterface interface {
GetRegistryURL() string
}