dynamic

package
v0.0.0-...-a2226db Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 ResolveContext

func ResolveContext(ctx context.Context, ref core.ObjectRef, parentNs string) (*management.Context, 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