client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAgentThirdPartyResource

func CreateAgentThirdPartyResource(clientset kubernetes.Interface) error

CreateAgentThirdPartyResource is a function to initialize schema for 3rd-party resource

func ExtensionClient

func ExtensionClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)

ExtensionClient is a client initialization function

Types

type AgentsClient

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

AgentsClient structure

func (*AgentsClient) Create

func (c *AgentsClient) Create(agent *ext_v1.Agent) (result *ext_v1.Agent, err error)

Create agent function

func (*AgentsClient) Delete

func (c *AgentsClient) Delete(name string, options *api_v1.DeleteOptions) error

Delete agent function

func (*AgentsClient) Get

func (c *AgentsClient) Get(name string) (result *ext_v1.Agent, err error)

Get agent function

func (*AgentsClient) List

func (c *AgentsClient) List() (result *ext_v1.AgentList, err error)

List agents function

func (*AgentsClient) Update

func (c *AgentsClient) Update(agent *ext_v1.Agent) (result *ext_v1.Agent, err error)

Update agents function

type AgentsInterface

type AgentsInterface interface {
	Create(*ext_v1.Agent) (*ext_v1.Agent, error)
	Get(name string) (*ext_v1.Agent, error)
	List() (*ext_v1.AgentList, error)
	Update(*ext_v1.Agent) (*ext_v1.Agent, error)
	Delete(string, *api_v1.DeleteOptions) error
}

AgentsInterface interface

type Clientset

type Clientset interface {
	Agents() AgentsInterface
}

Clientset interface

type WrappedClientset

type WrappedClientset struct {
	Client *rest.RESTClient
	Scheme *runtime.Scheme
}

WrappedClientset structure

func WrapClientsetWithExtensions

func WrapClientsetWithExtensions(clientset *kubernetes.Clientset, config *rest.Config) (*WrappedClientset, error)

WrapClientsetWithExtensions is a wrapper function for clientset

func (*WrappedClientset) Agents

func (w *WrappedClientset) Agents() AgentsInterface

Agents function

Jump to

Keyboard shortcuts

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