Documentation
¶
Index ¶
- Variables
- func GetWorkloadDeploymentsFromCpln(ctx Context, connector Connector, cr *unstructured.Unstructured) ([]deployment.Deployment, error)
- func Name(cr *unstructured.Unstructured) string
- func ReadTagsFromAnnotations(cr *unstructured.Unstructured, cpln map[string]any)
- func StoreTagsAsAnnotations(cr *unstructured.Unstructured, cpln map[string]any)
- type Connector
- type Context
- type Converter
- type UrlProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var SPECIAL_SECRET_TYPES = []string{"azure-sdk", "docker", "gcp"}
Functions ¶
func GetWorkloadDeploymentsFromCpln ¶
func GetWorkloadDeploymentsFromCpln(ctx Context, connector Connector, cr *unstructured.Unstructured) ([]deployment.Deployment, error)
func Name ¶
func Name(cr *unstructured.Unstructured) string
func ReadTagsFromAnnotations ¶
func ReadTagsFromAnnotations(cr *unstructured.Unstructured, cpln map[string]any)
func StoreTagsAsAnnotations ¶
func StoreTagsAsAnnotations(cr *unstructured.Unstructured, cpln map[string]any)
Types ¶
type Connector ¶
type Connector interface {
InjectUrlProvider(urlProvider UrlProvider)
InjectConverter(converter Converter)
Context(ctx context.Context, cr *unstructured.Unstructured) (Context, error)
//Put works for create and update operations
Put(ctx Context, cr *unstructured.Unstructured, dryRun bool) (string, error)
Get(ctx Context, cr *unstructured.Unstructured) ([]byte, error)
Delete(ctx Context, cr *unstructured.Unstructured) error
UrlProvider
Converter
}
type Converter ¶
type Converter interface {
K8sFormat(ctx Context, cr *unstructured.Unstructured, cplnObj map[string]any) (*unstructured.Unstructured, error)
CplnFormat(cr *unstructured.Unstructured) (map[string]any, error)
}
func NewGenericConverter ¶
func NewSecretConverter ¶
func NewSecretConverter() Converter
type UrlProvider ¶
type UrlProvider interface {
WriteUrl(ctx Context, cr *unstructured.Unstructured) string
ReadUrl(ctx Context, cr *unstructured.Unstructured) string
}
func NewGenericUrlProvider ¶
func NewGenericUrlProvider(apiUrl string) UrlProvider
Click to show internal directories.
Click to hide internal directories.