dynamic

package
v0.0.0-...-b7f4efd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationGVR = schema.GroupVersionResource{
	Group:    core.CRDGroup,
	Version:  core.CRDVersion,
	Resource: core.CRDApplicationResource,
}
View Source
var ManagementContextGVR = schema.GroupVersionResource{
	Group:    core.CRDGroup,
	Version:  core.CRDVersion,
	Resource: core.CRDManagementContextResource,
}
View Source
var ResourceGVR = schema.GroupVersionResource{
	Group:    core.CRDGroup,
	Version:  core.CRDVersion,
	Resource: core.CRDResourceResource,
}
View Source
var SecretGVR = schema.GroupVersionResource{
	Group:    "",
	Version:  "v1",
	Resource: "secrets",
}

Functions

func ExpectResolvedContext

func ExpectResolvedContext(ctx context.Context, ref core.ObjectRef, parentNs string) error

func ExpectResolvedResource

func ExpectResolvedResource(ctx context.Context, ref core.ObjectRef, parentNs string) error

func ExpectResolvedSecret

func ExpectResolvedSecret(ctx context.Context, ref core.ObjectRef, parentNs string) error

func GetAPIs

func GetAPIs(ctx context.Context, opts ListOptions) ([]core.ApiDefinitionModel, error)

func GetClient

func GetClient() *dynamic.DynamicClient

func InjectSecretIfAny

func InjectSecretIfAny(ctx context.Context, mCtx core.ContextObject) (*core.ContextObject, error)

func PluralizeKind

func PluralizeKind(kind string) string

func ResolveAPI

func ResolveAPI(ctx context.Context, ref core.ObjectRef, parentNs string) (core.ApiDefinitionObject, error)

func ResolveApplication

func ResolveApplication(ctx context.Context, ref core.ObjectRef, parentNs string) (core.ApplicationObject, error)

func ResolveContext

func ResolveContext(ctx context.Context, ref core.ObjectRef, parentNs string) (core.ContextObject, error)

func ResolveResource

func ResolveResource(ctx context.Context, ref core.ObjectRef, parentNs string) (core.ResourceModel, error)

func ResolveSecret

func ResolveSecret(ctx context.Context, ref core.ObjectRef, parentNs string) (*coreV1.Secret, error)

Types

type ListOptions

type ListOptions struct {
	Namespace string
	Excluded  []core.ObjectRef
}

Jump to

Keyboard shortcuts

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