Documentation
¶
Index ¶
- func GetErrorReason(err error) metav1.StatusReason
- func IsAlreadyExistError(err error) bool
- func IsNotFoundError(err error) bool
- func KindToResource(kind string) string
- func LoadConfig(config *Config) (*rest.Config, error)
- func ParseGVR(apiVersion, kind string) (schema.GroupVersionResource, error)
- type Client
- func (c *Client) ApplyResourceSet(ctx context.Context, rs *v1alpha1.ResourceSet) error
- func (c *Client) DeleteResourceSet(ctx context.Context, name string) error
- func (c *Client) GetWebhook(_ context.Context, name string) (*v1alpha1.Webhook, error)
- func (c *Client) NewDynamicInterface(ctx context.Context, gvr schema.GroupVersionResource) dynamic.ResourceInterface
- func (c *Client) NewInformer(ctx context.Context) externalversions.SharedInformerFactory
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetErrorReason ¶
func GetErrorReason(err error) metav1.StatusReason
func IsAlreadyExistError ¶
func IsNotFoundError ¶
func KindToResource ¶
Types ¶
type Client ¶
func (*Client) ApplyResourceSet ¶
func (*Client) DeleteResourceSet ¶
func (*Client) GetWebhook ¶
func (*Client) NewDynamicInterface ¶
func (c *Client) NewDynamicInterface(ctx context.Context, gvr schema.GroupVersionResource) dynamic.ResourceInterface
func (*Client) NewInformer ¶
func (c *Client) NewInformer(ctx context.Context) externalversions.SharedInformerFactory
Click to show internal directories.
Click to hide internal directories.