kubernetes

package
v2.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for kubernetes API

func (*Client) ListKubernetesClusters

func (a *Client) ListKubernetesClusters(params *ListKubernetesClustersParams) (*ListKubernetesClustersOK, error)

ListKubernetesClusters lists kubernetes clusters returns a list of all registered kubernetes clusters

func (*Client) RegisterKubernetesCluster

func (a *Client) RegisterKubernetesCluster(params *RegisterKubernetesClusterParams) (*RegisterKubernetesClusterOK, error)

RegisterKubernetesCluster registers kubernetes cluster registers an existing kubernetes cluster in PMM

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UnregisterKubernetesCluster

func (a *Client) UnregisterKubernetesCluster(params *UnregisterKubernetesClusterParams) (*UnregisterKubernetesClusterOK, error)

UnregisterKubernetesCluster unregisters kubernetes cluster removes a registered kubernetes cluster from PMM

type ClientService

type ClientService interface {
	ListKubernetesClusters(params *ListKubernetesClustersParams) (*ListKubernetesClustersOK, error)

	RegisterKubernetesCluster(params *RegisterKubernetesClusterParams) (*RegisterKubernetesClusterOK, error)

	UnregisterKubernetesCluster(params *UnregisterKubernetesClusterParams) (*UnregisterKubernetesClusterOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new kubernetes API client.

type DetailsItems0

type DetailsItems0 struct {

	// type url
	TypeURL string `json:"type_url,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

DetailsItems0 details items0 swagger:model DetailsItems0

func (*DetailsItems0) MarshalBinary

func (o *DetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DetailsItems0) UnmarshalBinary

func (o *DetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailsItems0) Validate

func (o *DetailsItems0) Validate(formats strfmt.Registry) error

Validate validates this details items0

type KubernetesClustersItems0

type KubernetesClustersItems0 struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`
}

KubernetesClustersItems0 Cluster contains public info about kubernetes cluster. swagger:model KubernetesClustersItems0

func (*KubernetesClustersItems0) MarshalBinary

func (o *KubernetesClustersItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*KubernetesClustersItems0) UnmarshalBinary

func (o *KubernetesClustersItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*KubernetesClustersItems0) Validate

func (o *KubernetesClustersItems0) Validate(formats strfmt.Registry) error

Validate validates this kubernetes clusters items0

type ListKubernetesClustersDefault

type ListKubernetesClustersDefault struct {
	Payload *ListKubernetesClustersDefaultBody
	// contains filtered or unexported fields
}

ListKubernetesClustersDefault handles this case with default header values.

An unexpected error response

func NewListKubernetesClustersDefault

func NewListKubernetesClustersDefault(code int) *ListKubernetesClustersDefault

NewListKubernetesClustersDefault creates a ListKubernetesClustersDefault with default headers values

func (*ListKubernetesClustersDefault) Code

Code gets the status code for the list kubernetes clusters default response

func (*ListKubernetesClustersDefault) Error

func (*ListKubernetesClustersDefault) GetPayload

type ListKubernetesClustersDefaultBody

type ListKubernetesClustersDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

ListKubernetesClustersDefaultBody list kubernetes clusters default body swagger:model ListKubernetesClustersDefaultBody

func (*ListKubernetesClustersDefaultBody) MarshalBinary

func (o *ListKubernetesClustersDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListKubernetesClustersDefaultBody) UnmarshalBinary

func (o *ListKubernetesClustersDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListKubernetesClustersDefaultBody) Validate

Validate validates this list kubernetes clusters default body

type ListKubernetesClustersOK

type ListKubernetesClustersOK struct {
	Payload *ListKubernetesClustersOKBody
}

ListKubernetesClustersOK handles this case with default header values.

A successful response.

func NewListKubernetesClustersOK

func NewListKubernetesClustersOK() *ListKubernetesClustersOK

NewListKubernetesClustersOK creates a ListKubernetesClustersOK with default headers values

func (*ListKubernetesClustersOK) Error

func (o *ListKubernetesClustersOK) Error() string

func (*ListKubernetesClustersOK) GetPayload

type ListKubernetesClustersOKBody

type ListKubernetesClustersOKBody struct {

	// Kubernetes clusters.
	KubernetesClusters []*KubernetesClustersItems0 `json:"kubernetes_clusters"`
}

ListKubernetesClustersOKBody list kubernetes clusters OK body swagger:model ListKubernetesClustersOKBody

func (*ListKubernetesClustersOKBody) MarshalBinary

func (o *ListKubernetesClustersOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListKubernetesClustersOKBody) UnmarshalBinary

func (o *ListKubernetesClustersOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListKubernetesClustersOKBody) Validate

func (o *ListKubernetesClustersOKBody) Validate(formats strfmt.Registry) error

Validate validates this list kubernetes clusters OK body

type ListKubernetesClustersParams

type ListKubernetesClustersParams struct {

	/*Body*/
	Body interface{}

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListKubernetesClustersParams contains all the parameters to send to the API endpoint for the list kubernetes clusters operation typically these are written to a http.Request

func NewListKubernetesClustersParams

func NewListKubernetesClustersParams() *ListKubernetesClustersParams

NewListKubernetesClustersParams creates a new ListKubernetesClustersParams object with the default values initialized.

func NewListKubernetesClustersParamsWithContext

func NewListKubernetesClustersParamsWithContext(ctx context.Context) *ListKubernetesClustersParams

NewListKubernetesClustersParamsWithContext creates a new ListKubernetesClustersParams object with the default values initialized, and the ability to set a context for a request

func NewListKubernetesClustersParamsWithHTTPClient

func NewListKubernetesClustersParamsWithHTTPClient(client *http.Client) *ListKubernetesClustersParams

NewListKubernetesClustersParamsWithHTTPClient creates a new ListKubernetesClustersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListKubernetesClustersParamsWithTimeout

func NewListKubernetesClustersParamsWithTimeout(timeout time.Duration) *ListKubernetesClustersParams

NewListKubernetesClustersParamsWithTimeout creates a new ListKubernetesClustersParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListKubernetesClustersParams) SetBody

func (o *ListKubernetesClustersParams) SetBody(body interface{})

SetBody adds the body to the list kubernetes clusters params

func (*ListKubernetesClustersParams) SetContext

func (o *ListKubernetesClustersParams) SetContext(ctx context.Context)

SetContext adds the context to the list kubernetes clusters params

func (*ListKubernetesClustersParams) SetHTTPClient

func (o *ListKubernetesClustersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list kubernetes clusters params

func (*ListKubernetesClustersParams) SetTimeout

func (o *ListKubernetesClustersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list kubernetes clusters params

func (*ListKubernetesClustersParams) WithBody

func (o *ListKubernetesClustersParams) WithBody(body interface{}) *ListKubernetesClustersParams

WithBody adds the body to the list kubernetes clusters params

func (*ListKubernetesClustersParams) WithContext

WithContext adds the context to the list kubernetes clusters params

func (*ListKubernetesClustersParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list kubernetes clusters params

func (*ListKubernetesClustersParams) WithTimeout

WithTimeout adds the timeout to the list kubernetes clusters params

func (*ListKubernetesClustersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListKubernetesClustersReader

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

ListKubernetesClustersReader is a Reader for the ListKubernetesClusters structure.

func (*ListKubernetesClustersReader) ReadResponse

func (o *ListKubernetesClustersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RegisterKubernetesClusterBody

type RegisterKubernetesClusterBody struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`

	// kube auth
	KubeAuth *RegisterKubernetesClusterParamsBodyKubeAuth `json:"kube_auth,omitempty"`
}

RegisterKubernetesClusterBody register kubernetes cluster body swagger:model RegisterKubernetesClusterBody

func (*RegisterKubernetesClusterBody) MarshalBinary

func (o *RegisterKubernetesClusterBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegisterKubernetesClusterBody) UnmarshalBinary

func (o *RegisterKubernetesClusterBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegisterKubernetesClusterBody) Validate

func (o *RegisterKubernetesClusterBody) Validate(formats strfmt.Registry) error

Validate validates this register kubernetes cluster body

type RegisterKubernetesClusterDefault

type RegisterKubernetesClusterDefault struct {
	Payload *RegisterKubernetesClusterDefaultBody
	// contains filtered or unexported fields
}

RegisterKubernetesClusterDefault handles this case with default header values.

An unexpected error response

func NewRegisterKubernetesClusterDefault

func NewRegisterKubernetesClusterDefault(code int) *RegisterKubernetesClusterDefault

NewRegisterKubernetesClusterDefault creates a RegisterKubernetesClusterDefault with default headers values

func (*RegisterKubernetesClusterDefault) Code

Code gets the status code for the register kubernetes cluster default response

func (*RegisterKubernetesClusterDefault) Error

func (*RegisterKubernetesClusterDefault) GetPayload

type RegisterKubernetesClusterDefaultBody

type RegisterKubernetesClusterDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

RegisterKubernetesClusterDefaultBody register kubernetes cluster default body swagger:model RegisterKubernetesClusterDefaultBody

func (*RegisterKubernetesClusterDefaultBody) MarshalBinary

func (o *RegisterKubernetesClusterDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegisterKubernetesClusterDefaultBody) UnmarshalBinary

func (o *RegisterKubernetesClusterDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegisterKubernetesClusterDefaultBody) Validate

Validate validates this register kubernetes cluster default body

type RegisterKubernetesClusterOK

type RegisterKubernetesClusterOK struct {
	Payload interface{}
}

RegisterKubernetesClusterOK handles this case with default header values.

A successful response.

func NewRegisterKubernetesClusterOK

func NewRegisterKubernetesClusterOK() *RegisterKubernetesClusterOK

NewRegisterKubernetesClusterOK creates a RegisterKubernetesClusterOK with default headers values

func (*RegisterKubernetesClusterOK) Error

func (*RegisterKubernetesClusterOK) GetPayload

func (o *RegisterKubernetesClusterOK) GetPayload() interface{}

type RegisterKubernetesClusterParams

type RegisterKubernetesClusterParams struct {

	/*Body*/
	Body RegisterKubernetesClusterBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RegisterKubernetesClusterParams contains all the parameters to send to the API endpoint for the register kubernetes cluster operation typically these are written to a http.Request

func NewRegisterKubernetesClusterParams

func NewRegisterKubernetesClusterParams() *RegisterKubernetesClusterParams

NewRegisterKubernetesClusterParams creates a new RegisterKubernetesClusterParams object with the default values initialized.

func NewRegisterKubernetesClusterParamsWithContext

func NewRegisterKubernetesClusterParamsWithContext(ctx context.Context) *RegisterKubernetesClusterParams

NewRegisterKubernetesClusterParamsWithContext creates a new RegisterKubernetesClusterParams object with the default values initialized, and the ability to set a context for a request

func NewRegisterKubernetesClusterParamsWithHTTPClient

func NewRegisterKubernetesClusterParamsWithHTTPClient(client *http.Client) *RegisterKubernetesClusterParams

NewRegisterKubernetesClusterParamsWithHTTPClient creates a new RegisterKubernetesClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRegisterKubernetesClusterParamsWithTimeout

func NewRegisterKubernetesClusterParamsWithTimeout(timeout time.Duration) *RegisterKubernetesClusterParams

NewRegisterKubernetesClusterParamsWithTimeout creates a new RegisterKubernetesClusterParams object with the default values initialized, and the ability to set a timeout on a request

func (*RegisterKubernetesClusterParams) SetBody

SetBody adds the body to the register kubernetes cluster params

func (*RegisterKubernetesClusterParams) SetContext

func (o *RegisterKubernetesClusterParams) SetContext(ctx context.Context)

SetContext adds the context to the register kubernetes cluster params

func (*RegisterKubernetesClusterParams) SetHTTPClient

func (o *RegisterKubernetesClusterParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the register kubernetes cluster params

func (*RegisterKubernetesClusterParams) SetTimeout

func (o *RegisterKubernetesClusterParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the register kubernetes cluster params

func (*RegisterKubernetesClusterParams) WithBody

WithBody adds the body to the register kubernetes cluster params

func (*RegisterKubernetesClusterParams) WithContext

WithContext adds the context to the register kubernetes cluster params

func (*RegisterKubernetesClusterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the register kubernetes cluster params

func (*RegisterKubernetesClusterParams) WithTimeout

WithTimeout adds the timeout to the register kubernetes cluster params

func (*RegisterKubernetesClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RegisterKubernetesClusterParamsBodyKubeAuth

type RegisterKubernetesClusterParamsBodyKubeAuth struct {

	// Kubeconfig file content.
	Kubeconfig string `json:"kubeconfig,omitempty"`
}

RegisterKubernetesClusterParamsBodyKubeAuth KubeAuth represents Kubernetes / kubectl authentication and authorization information. swagger:model RegisterKubernetesClusterParamsBodyKubeAuth

func (*RegisterKubernetesClusterParamsBodyKubeAuth) MarshalBinary

func (o *RegisterKubernetesClusterParamsBodyKubeAuth) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegisterKubernetesClusterParamsBodyKubeAuth) UnmarshalBinary

func (o *RegisterKubernetesClusterParamsBodyKubeAuth) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegisterKubernetesClusterParamsBodyKubeAuth) Validate

Validate validates this register kubernetes cluster params body kube auth

type RegisterKubernetesClusterReader

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

RegisterKubernetesClusterReader is a Reader for the RegisterKubernetesCluster structure.

func (*RegisterKubernetesClusterReader) ReadResponse

func (o *RegisterKubernetesClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UnregisterKubernetesClusterBody

type UnregisterKubernetesClusterBody struct {

	// Kubernetes cluster name.
	KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"`
}

UnregisterKubernetesClusterBody unregister kubernetes cluster body swagger:model UnregisterKubernetesClusterBody

func (*UnregisterKubernetesClusterBody) MarshalBinary

func (o *UnregisterKubernetesClusterBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UnregisterKubernetesClusterBody) UnmarshalBinary

func (o *UnregisterKubernetesClusterBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UnregisterKubernetesClusterBody) Validate

Validate validates this unregister kubernetes cluster body

type UnregisterKubernetesClusterDefault

type UnregisterKubernetesClusterDefault struct {
	Payload *UnregisterKubernetesClusterDefaultBody
	// contains filtered or unexported fields
}

UnregisterKubernetesClusterDefault handles this case with default header values.

An unexpected error response

func NewUnregisterKubernetesClusterDefault

func NewUnregisterKubernetesClusterDefault(code int) *UnregisterKubernetesClusterDefault

NewUnregisterKubernetesClusterDefault creates a UnregisterKubernetesClusterDefault with default headers values

func (*UnregisterKubernetesClusterDefault) Code

Code gets the status code for the unregister kubernetes cluster default response

func (*UnregisterKubernetesClusterDefault) Error

func (*UnregisterKubernetesClusterDefault) GetPayload

type UnregisterKubernetesClusterDefaultBody

type UnregisterKubernetesClusterDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

UnregisterKubernetesClusterDefaultBody unregister kubernetes cluster default body swagger:model UnregisterKubernetesClusterDefaultBody

func (*UnregisterKubernetesClusterDefaultBody) MarshalBinary

func (o *UnregisterKubernetesClusterDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UnregisterKubernetesClusterDefaultBody) UnmarshalBinary

func (o *UnregisterKubernetesClusterDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UnregisterKubernetesClusterDefaultBody) Validate

Validate validates this unregister kubernetes cluster default body

type UnregisterKubernetesClusterOK

type UnregisterKubernetesClusterOK struct {
	Payload interface{}
}

UnregisterKubernetesClusterOK handles this case with default header values.

A successful response.

func NewUnregisterKubernetesClusterOK

func NewUnregisterKubernetesClusterOK() *UnregisterKubernetesClusterOK

NewUnregisterKubernetesClusterOK creates a UnregisterKubernetesClusterOK with default headers values

func (*UnregisterKubernetesClusterOK) Error

func (*UnregisterKubernetesClusterOK) GetPayload

func (o *UnregisterKubernetesClusterOK) GetPayload() interface{}

type UnregisterKubernetesClusterParams

type UnregisterKubernetesClusterParams struct {

	/*Body*/
	Body UnregisterKubernetesClusterBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UnregisterKubernetesClusterParams contains all the parameters to send to the API endpoint for the unregister kubernetes cluster operation typically these are written to a http.Request

func NewUnregisterKubernetesClusterParams

func NewUnregisterKubernetesClusterParams() *UnregisterKubernetesClusterParams

NewUnregisterKubernetesClusterParams creates a new UnregisterKubernetesClusterParams object with the default values initialized.

func NewUnregisterKubernetesClusterParamsWithContext

func NewUnregisterKubernetesClusterParamsWithContext(ctx context.Context) *UnregisterKubernetesClusterParams

NewUnregisterKubernetesClusterParamsWithContext creates a new UnregisterKubernetesClusterParams object with the default values initialized, and the ability to set a context for a request

func NewUnregisterKubernetesClusterParamsWithHTTPClient

func NewUnregisterKubernetesClusterParamsWithHTTPClient(client *http.Client) *UnregisterKubernetesClusterParams

NewUnregisterKubernetesClusterParamsWithHTTPClient creates a new UnregisterKubernetesClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUnregisterKubernetesClusterParamsWithTimeout

func NewUnregisterKubernetesClusterParamsWithTimeout(timeout time.Duration) *UnregisterKubernetesClusterParams

NewUnregisterKubernetesClusterParamsWithTimeout creates a new UnregisterKubernetesClusterParams object with the default values initialized, and the ability to set a timeout on a request

func (*UnregisterKubernetesClusterParams) SetBody

SetBody adds the body to the unregister kubernetes cluster params

func (*UnregisterKubernetesClusterParams) SetContext

SetContext adds the context to the unregister kubernetes cluster params

func (*UnregisterKubernetesClusterParams) SetHTTPClient

func (o *UnregisterKubernetesClusterParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the unregister kubernetes cluster params

func (*UnregisterKubernetesClusterParams) SetTimeout

func (o *UnregisterKubernetesClusterParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the unregister kubernetes cluster params

func (*UnregisterKubernetesClusterParams) WithBody

WithBody adds the body to the unregister kubernetes cluster params

func (*UnregisterKubernetesClusterParams) WithContext

WithContext adds the context to the unregister kubernetes cluster params

func (*UnregisterKubernetesClusterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the unregister kubernetes cluster params

func (*UnregisterKubernetesClusterParams) WithTimeout

WithTimeout adds the timeout to the unregister kubernetes cluster params

func (*UnregisterKubernetesClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UnregisterKubernetesClusterReader

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

UnregisterKubernetesClusterReader is a Reader for the UnregisterKubernetesCluster structure.

func (*UnregisterKubernetesClusterReader) ReadResponse

func (o *UnregisterKubernetesClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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