k8s

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolP

func BoolP(b bool) *bool

func GetErrorReason

func GetErrorReason(err error) metav1.StatusReason

func IntP

func IntP(i int) *int

func IsAlreadyExistError

func IsAlreadyExistError(err error) bool

func IsNotFoundError

func IsNotFoundError(err error) bool

func KindToResource

func KindToResource(kind string) string

func LoadConfig

func LoadConfig(config *Config) (*rest.Config, error)

func ParseGVR

func ParseGVR(apiVersion, kind string) (schema.GroupVersionResource, error)

func StringP

func StringP(s string) *string

Types

type Client

type Client struct {
	Namespace string
	Dynamic   dynamic.Interface
	Client    versioned.Interface
}

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) ApplyResourceSet

func (c *Client) ApplyResourceSet(ctx context.Context, rs *v1alpha1.ResourceSet) error

func (*Client) DeleteResourceSet

func (c *Client) DeleteResourceSet(ctx context.Context, name string) error

func (*Client) GetWebhook

func (c *Client) GetWebhook(_ context.Context, name string) (*v1alpha1.Webhook, error)

func (*Client) NewDynamicInterface

func (c *Client) NewDynamicInterface(ctx context.Context, gvr schema.GroupVersionResource) dynamic.ResourceInterface

func (*Client) NewInformer

type Config

type Config struct {
	Namespace string `mapstructure:"namespace"`
	Config    string `mapstructure:"config"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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