Documentation ¶
Index ¶
- func CreateAgentThirdPartyResource(clientset kubernetes.Interface) error
- func ExtensionClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)
- type AgentsClient
- func (c *AgentsClient) Create(agent *ext_v1.Agent) (result *ext_v1.Agent, err error)
- func (c *AgentsClient) Delete(name string, options *api_v1.DeleteOptions) error
- func (c *AgentsClient) Get(name string) (result *ext_v1.Agent, err error)
- func (c *AgentsClient) List() (result *ext_v1.AgentList, err error)
- func (c *AgentsClient) Update(agent *ext_v1.Agent) (result *ext_v1.Agent, err error)
- type AgentsInterface
- type Clientset
- type WrappedClientset
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 ¶
ExtensionClient is a client initialization function
Types ¶
type AgentsClient ¶
type AgentsClient struct {
// contains filtered or unexported fields
}
AgentsClient structure
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
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 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
Click to show internal directories.
Click to hide internal directories.