clientset

package
v0.8.0-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterConfig

func NewClusterConfig(host string, tlsInsecure bool, tlsConfig *rest.TLSClientConfig) (*rest.Config, error)

NewClusterConfig creates a new customized *kubernetes.Config

func NewKubernetesClient

func NewKubernetesClient(c *rest.Config) (kubernetes.Interface, error)

Types

type Clientset

type Clientset struct {
	*CoreClient
}

Clientset contains the clients for groups. Each group has exactly one version included in a Clientset.

func (*Clientset) Core

func (c *Clientset) Core() CoreInterface

Core retrieves the CoreClient

type CoreClient

type CoreClient struct {
	// contains filtered or unexported fields
}

CoreClient is used to interact with features provided by the Core group.

func NewSysRESTClient

func NewSysRESTClient(c *rest.Config) (*CoreClient, error)

NewSysRESTClient generates a new *kubernetes.Interface to communicate with Custom Resource Defintions resources

func (*CoreClient) RESTClient

func (c *CoreClient) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*CoreClient) Release

func (c *CoreClient) Release(namespace string) ReleaseInterface

Release generates a new client to communicate with Release resources

func (*CoreClient) ServicePlan

func (c *CoreClient) ServicePlan(namespace string) ServicePlanInterface

ServicePlan generates a new client to communicate with ServicePlan resources

type CoreInterface

type CoreInterface interface {
	RESTClient() rest.Interface

	ServicePlanGetter
	ReleaseGetter
}

CoreInterface contains client third party resources

type Interface

type Interface interface {
	Core() CoreInterface
}

Interface core

type ReleaseGetter

type ReleaseGetter interface {
	Release(namespace string) ReleaseInterface
}

ReleaseGetter has a method to return an ReleaseInterface. A group's client should implement this interface.

type ReleaseInterface

type ReleaseInterface interface {
	List(opts *metav1.ListOptions) (*platform.ReleaseList, error)
	Get(name string) (*platform.Release, error)
	Delete(name string, options *metav1.DeleteOptions) error
	Create(data *platform.Release) (*platform.Release, error)
	Update(data *platform.Release) (*platform.Release, error)
	Watch(opts *metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (*platform.Release, error)
}

ReleaseInterface has methods to work with Release resources.

type ServicePlanGetter

type ServicePlanGetter interface {
	ServicePlan(namespace string) ServicePlanInterface
}

ServicePlanGetter has a method to return an ServicePlanInterface. A group's client should implement this interface.

type ServicePlanInterface

type ServicePlanInterface interface {
	List(opts *metav1.ListOptions) (*platform.PlanList, error)
	Get(name string) (*platform.Plan, error)
	Delete(name string, options *metav1.DeleteOptions) error
	Create(data *platform.Plan) (*platform.Plan, error)
	Update(data *platform.Plan) (*platform.Plan, error)
	Watch(opts *metav1.ListOptions) (watch.Interface, error)
}

ServicePlanInterface has methods to work with ServicePlan resources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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