pod

package
v0.0.0-...-acbd0ad Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckPodTicketForbidden

type CheckPodTicketForbidden struct {
	Payload *models.Error
}
CheckPodTicketForbidden describes a response with status code 403, with default header values.

Check Pod Ticket Failed, cause do not have permisssion

func NewCheckPodTicketForbidden

func NewCheckPodTicketForbidden() *CheckPodTicketForbidden

NewCheckPodTicketForbidden creates a CheckPodTicketForbidden with default headers values

func (*CheckPodTicketForbidden) Error

func (o *CheckPodTicketForbidden) Error() string

func (*CheckPodTicketForbidden) GetPayload

func (o *CheckPodTicketForbidden) GetPayload() *models.Error

type CheckPodTicketInternalServerError

type CheckPodTicketInternalServerError struct {
	Payload *models.Error
}
CheckPodTicketInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewCheckPodTicketInternalServerError

func NewCheckPodTicketInternalServerError() *CheckPodTicketInternalServerError

NewCheckPodTicketInternalServerError creates a CheckPodTicketInternalServerError with default headers values

func (*CheckPodTicketInternalServerError) Error

func (*CheckPodTicketInternalServerError) GetPayload

type CheckPodTicketOK

type CheckPodTicketOK struct {
	Payload *models.SSHPodTicket
}
CheckPodTicketOK describes a response with status code 200, with default header values.

Check Pod Ticket Success, return pod ticket info.

func NewCheckPodTicketOK

func NewCheckPodTicketOK() *CheckPodTicketOK

NewCheckPodTicketOK creates a CheckPodTicketOK with default headers values

func (*CheckPodTicketOK) Error

func (o *CheckPodTicketOK) Error() string

func (*CheckPodTicketOK) GetPayload

func (o *CheckPodTicketOK) GetPayload() *models.SSHPodTicket

type CheckPodTicketParams

type CheckPodTicketParams struct {

	// TicketValue.
	TicketValue string

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

CheckPodTicketParams contains all the parameters to send to the API endpoint

for the check pod ticket operation.

Typically these are written to a http.Request.

func NewCheckPodTicketParams

func NewCheckPodTicketParams() *CheckPodTicketParams

NewCheckPodTicketParams creates a new CheckPodTicketParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCheckPodTicketParamsWithContext

func NewCheckPodTicketParamsWithContext(ctx context.Context) *CheckPodTicketParams

NewCheckPodTicketParamsWithContext creates a new CheckPodTicketParams object with the ability to set a context for a request.

func NewCheckPodTicketParamsWithHTTPClient

func NewCheckPodTicketParamsWithHTTPClient(client *http.Client) *CheckPodTicketParams

NewCheckPodTicketParamsWithHTTPClient creates a new CheckPodTicketParams object with the ability to set a custom HTTPClient for a request.

func NewCheckPodTicketParamsWithTimeout

func NewCheckPodTicketParamsWithTimeout(timeout time.Duration) *CheckPodTicketParams

NewCheckPodTicketParamsWithTimeout creates a new CheckPodTicketParams object with the ability to set a timeout on a request.

func (*CheckPodTicketParams) SetContext

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

SetContext adds the context to the check pod ticket params

func (*CheckPodTicketParams) SetDefaults

func (o *CheckPodTicketParams) SetDefaults()

SetDefaults hydrates default values in the check pod ticket params (not the query body).

All values with no default are reset to their zero value.

func (*CheckPodTicketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the check pod ticket params

func (*CheckPodTicketParams) SetTicketValue

func (o *CheckPodTicketParams) SetTicketValue(ticketValue string)

SetTicketValue adds the ticketValue to the check pod ticket params

func (*CheckPodTicketParams) SetTimeout

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

SetTimeout adds the timeout to the check pod ticket params

func (*CheckPodTicketParams) WithContext

WithContext adds the context to the check pod ticket params

func (*CheckPodTicketParams) WithDefaults

func (o *CheckPodTicketParams) WithDefaults() *CheckPodTicketParams

WithDefaults hydrates default values in the check pod ticket params (not the query body).

All values with no default are reset to their zero value.

func (*CheckPodTicketParams) WithHTTPClient

func (o *CheckPodTicketParams) WithHTTPClient(client *http.Client) *CheckPodTicketParams

WithHTTPClient adds the HTTPClient to the check pod ticket params

func (*CheckPodTicketParams) WithTicketValue

func (o *CheckPodTicketParams) WithTicketValue(ticketValue string) *CheckPodTicketParams

WithTicketValue adds the ticketValue to the check pod ticket params

func (*CheckPodTicketParams) WithTimeout

func (o *CheckPodTicketParams) WithTimeout(timeout time.Duration) *CheckPodTicketParams

WithTimeout adds the timeout to the check pod ticket params

func (*CheckPodTicketParams) WriteToRequest

func (o *CheckPodTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CheckPodTicketReader

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

CheckPodTicketReader is a Reader for the CheckPodTicket structure.

func (*CheckPodTicketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for pod API

func (*Client) CheckPodTicket

func (a *Client) CheckPodTicket(params *CheckPodTicketParams, opts ...ClientOption) (*CheckPodTicketOK, error)

CheckPodTicket Check Pod Ticket, and delete it

func (*Client) CreatePodTicket

func (a *Client) CreatePodTicket(params *CreatePodTicketParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePodTicketCreated, error)

CreatePodTicket Create Visit Pod Once Ticket

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CheckPodTicket(params *CheckPodTicketParams, opts ...ClientOption) (*CheckPodTicketOK, error)

	CreatePodTicket(params *CreatePodTicketParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePodTicketCreated, 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 pod API client.

type CreatePodTicketBody

type CreatePodTicketBody struct {

	// pod name
	PodName string `json:"pod_name,omitempty"`

	// project id
	ProjectID int64 `json:"project_id,omitempty"`
}

CreatePodTicketBody create pod ticket body swagger:model CreatePodTicketBody

func (*CreatePodTicketBody) ContextValidate

func (o *CreatePodTicketBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create pod ticket body based on context it is used

func (*CreatePodTicketBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreatePodTicketBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreatePodTicketBody) Validate

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

Validate validates this create pod ticket body

type CreatePodTicketCreated

type CreatePodTicketCreated struct {
	Payload *models.SSHPodTicket
}
CreatePodTicketCreated describes a response with status code 201, with default header values.

Create Pod Ticket Success, return pod ticket info.

func NewCreatePodTicketCreated

func NewCreatePodTicketCreated() *CreatePodTicketCreated

NewCreatePodTicketCreated creates a CreatePodTicketCreated with default headers values

func (*CreatePodTicketCreated) Error

func (o *CreatePodTicketCreated) Error() string

func (*CreatePodTicketCreated) GetPayload

func (o *CreatePodTicketCreated) GetPayload() *models.SSHPodTicket

type CreatePodTicketForbidden

type CreatePodTicketForbidden struct {
	Payload *models.Error
}
CreatePodTicketForbidden describes a response with status code 403, with default header values.

Create Pod Ticket Failed, cause do not have permisssion

func NewCreatePodTicketForbidden

func NewCreatePodTicketForbidden() *CreatePodTicketForbidden

NewCreatePodTicketForbidden creates a CreatePodTicketForbidden with default headers values

func (*CreatePodTicketForbidden) Error

func (o *CreatePodTicketForbidden) Error() string

func (*CreatePodTicketForbidden) GetPayload

func (o *CreatePodTicketForbidden) GetPayload() *models.Error

type CreatePodTicketInternalServerError

type CreatePodTicketInternalServerError struct {
	Payload *models.Error
}
CreatePodTicketInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewCreatePodTicketInternalServerError

func NewCreatePodTicketInternalServerError() *CreatePodTicketInternalServerError

NewCreatePodTicketInternalServerError creates a CreatePodTicketInternalServerError with default headers values

func (*CreatePodTicketInternalServerError) Error

func (*CreatePodTicketInternalServerError) GetPayload

type CreatePodTicketParams

type CreatePodTicketParams struct {

	// Body.
	Body CreatePodTicketBody

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

CreatePodTicketParams contains all the parameters to send to the API endpoint

for the create pod ticket operation.

Typically these are written to a http.Request.

func NewCreatePodTicketParams

func NewCreatePodTicketParams() *CreatePodTicketParams

NewCreatePodTicketParams creates a new CreatePodTicketParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreatePodTicketParamsWithContext

func NewCreatePodTicketParamsWithContext(ctx context.Context) *CreatePodTicketParams

NewCreatePodTicketParamsWithContext creates a new CreatePodTicketParams object with the ability to set a context for a request.

func NewCreatePodTicketParamsWithHTTPClient

func NewCreatePodTicketParamsWithHTTPClient(client *http.Client) *CreatePodTicketParams

NewCreatePodTicketParamsWithHTTPClient creates a new CreatePodTicketParams object with the ability to set a custom HTTPClient for a request.

func NewCreatePodTicketParamsWithTimeout

func NewCreatePodTicketParamsWithTimeout(timeout time.Duration) *CreatePodTicketParams

NewCreatePodTicketParamsWithTimeout creates a new CreatePodTicketParams object with the ability to set a timeout on a request.

func (*CreatePodTicketParams) SetBody

func (o *CreatePodTicketParams) SetBody(body CreatePodTicketBody)

SetBody adds the body to the create pod ticket params

func (*CreatePodTicketParams) SetContext

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

SetContext adds the context to the create pod ticket params

func (*CreatePodTicketParams) SetDefaults

func (o *CreatePodTicketParams) SetDefaults()

SetDefaults hydrates default values in the create pod ticket params (not the query body).

All values with no default are reset to their zero value.

func (*CreatePodTicketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create pod ticket params

func (*CreatePodTicketParams) SetTimeout

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

SetTimeout adds the timeout to the create pod ticket params

func (*CreatePodTicketParams) WithBody

WithBody adds the body to the create pod ticket params

func (*CreatePodTicketParams) WithContext

WithContext adds the context to the create pod ticket params

func (*CreatePodTicketParams) WithDefaults

func (o *CreatePodTicketParams) WithDefaults() *CreatePodTicketParams

WithDefaults hydrates default values in the create pod ticket params (not the query body).

All values with no default are reset to their zero value.

func (*CreatePodTicketParams) WithHTTPClient

func (o *CreatePodTicketParams) WithHTTPClient(client *http.Client) *CreatePodTicketParams

WithHTTPClient adds the HTTPClient to the create pod ticket params

func (*CreatePodTicketParams) WithTimeout

func (o *CreatePodTicketParams) WithTimeout(timeout time.Duration) *CreatePodTicketParams

WithTimeout adds the timeout to the create pod ticket params

func (*CreatePodTicketParams) WriteToRequest

func (o *CreatePodTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreatePodTicketReader

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

CreatePodTicketReader is a Reader for the CreatePodTicket structure.

func (*CreatePodTicketReader) ReadResponse

func (o *CreatePodTicketReader) 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