Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentEcosystemInterface ¶ added in v0.1.0
type ComponentEcosystemInterface interface { kubernetes.Interface ComponentV1Alpha1() ComponentV1Alpha1Interface }
type ComponentInterface ¶
type ComponentInterface interface { // Create takes the representation of a component and creates it. Returns the server's representation of the component, and an error, if there is any. Create(ctx context.Context, component *v1.Component, opts metav1.CreateOptions) (*v1.Component, error) // Update takes the representation of a component and updates it. Returns the server's representation of the component, and an error, if there is any. Update(ctx context.Context, component *v1.Component, opts metav1.UpdateOptions) (*v1.Component, error) // UpdateStatus was generated because the type contains a Status member. UpdateStatus(ctx context.Context, component *v1.Component, opts metav1.UpdateOptions) (*v1.Component, error) // UpdateStatusInstalling sets the status of the component to "installing". UpdateStatusInstalling(ctx context.Context, component *v1.Component) (*v1.Component, error) // UpdateStatusInstalled sets the status of the component to "installed". UpdateStatusInstalled(ctx context.Context, component *v1.Component) (*v1.Component, error) // UpdateStatusUpgrading sets the status of the component to "upgrading". UpdateStatusUpgrading(ctx context.Context, component *v1.Component) (*v1.Component, error) // UpdateStatusDeleting sets the status of the component to "deleting". UpdateStatusDeleting(ctx context.Context, component *v1.Component) (*v1.Component, error) // Delete takes name of the component and deletes it. Returns an error if one occurs. Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error // DeleteCollection deletes a collection of objects. DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error // Get takes name of the component, and returns the corresponding component object, and an error if there is any. Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Component, error) // List takes label and field selectors, and returns the list of Components that match those selectors. List(ctx context.Context, opts metav1.ListOptions) (*v1.ComponentList, error) // Watch returns a watch.Interface that watches the requested components. Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) // Patch applies the patch and returns the patched component. Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Component, err error) // AddFinalizer adds the given finalizer to the component. AddFinalizer(ctx context.Context, component *v1.Component, finalizer string) (*v1.Component, error) // RemoveFinalizer removes the given finalizer to the component. RemoveFinalizer(ctx context.Context, component *v1.Component, finalizer string) (*v1.Component, error) }
type ComponentV1Alpha1Interface ¶ added in v0.1.0
type ComponentV1Alpha1Interface interface {
Components(namespace string) ComponentInterface
}
type EcosystemClientset ¶
type EcosystemClientset struct { *kubernetes.Clientset // contains filtered or unexported fields }
EcosystemClientset wraps the regular clientset with the ecosystemV1Alpha1 client.
func NewComponentClientset ¶
func NewComponentClientset(config *rest.Config, clientset *kubernetes.Clientset) (*EcosystemClientset, error)
NewComponentClientset creates a new instance of the component client.
func (*EcosystemClientset) ComponentV1Alpha1 ¶ added in v0.1.0
func (cswc *EcosystemClientset) ComponentV1Alpha1() ComponentV1Alpha1Interface
ComponentV1Alpha1 returns the ecosystemV1Aplha1 client.
type V1Alpha1Client ¶
type V1Alpha1Client struct {
// contains filtered or unexported fields
}
V1Alpha1Client wraps the rest.Interface to use as a restClient for the component client.
func NewForConfig ¶
func NewForConfig(c *rest.Config) (*V1Alpha1Client, error)
NewForConfig creates a new V1Alpha1Client for a given rest.Config.
func (*V1Alpha1Client) Components ¶
func (c *V1Alpha1Client) Components(namespace string) ComponentInterface
Components takes a namespace and returns a new component client.
Click to show internal directories.
Click to hide internal directories.