k8s_utils

package
v0.0.0-...-baa1f0e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRestConfig

func GetRestConfig() (*rest.Config, error)

Types

type Client

type Client struct {
	Clientset     ext.Interface
	DynamicClient dynamic.Interface
	// contains filtered or unexported fields
}

func (*Client) ApplyCrd

func (c *Client) ApplyCrd(crd v1.CustomResourceDefinition) error

func (*Client) DeleteCrd

func (c *Client) DeleteCrd(name string) error

func (*Client) FetchCrds

func (c *Client) FetchCrds() error

func (*Client) FetchGroup

func (c *Client) FetchGroup(groupPath string) error

func (*Client) GetCrd

func (c *Client) GetCrd(name string) *v1.CustomResourceDefinition

func (*Client) GetCrds

func (c *Client) GetCrds() []v1.CustomResourceDefinition

func (*Client) GetGroup

func (c *Client) GetGroup() string

func (*Client) ListResources

func (c *Client) ListResources(crd v1.CustomResourceDefinition) ([]unstructured.Unstructured, error)

type ClientInt

type ClientInt interface {
	ApplyCrd(crd v1.CustomResourceDefinition) error
	DeleteCrd(name string) error
	FetchCrds() error
	GetCrds() []v1.CustomResourceDefinition
	GetGroup() string
	GetCrd(name string) *v1.CustomResourceDefinition
	ListResources(crd v1.CustomResourceDefinition) ([]unstructured.Unstructured, error)
	FetchGroup(groupPath string) error
}

Directories

Path Synopsis
Package mock_k8s_utils is a generated GoMock package.
Package mock_k8s_utils is a generated GoMock package.

Jump to

Keyboard shortcuts

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