Documentation
¶
Index ¶
- type CheckPodTicketForbidden
- type CheckPodTicketInternalServerError
- type CheckPodTicketOK
- type CheckPodTicketParams
- func NewCheckPodTicketParams() *CheckPodTicketParams
- func NewCheckPodTicketParamsWithContext(ctx context.Context) *CheckPodTicketParams
- func NewCheckPodTicketParamsWithHTTPClient(client *http.Client) *CheckPodTicketParams
- func NewCheckPodTicketParamsWithTimeout(timeout time.Duration) *CheckPodTicketParams
- func (o *CheckPodTicketParams) SetContext(ctx context.Context)
- func (o *CheckPodTicketParams) SetDefaults()
- func (o *CheckPodTicketParams) SetHTTPClient(client *http.Client)
- func (o *CheckPodTicketParams) SetTicketValue(ticketValue string)
- func (o *CheckPodTicketParams) SetTimeout(timeout time.Duration)
- func (o *CheckPodTicketParams) WithContext(ctx context.Context) *CheckPodTicketParams
- func (o *CheckPodTicketParams) WithDefaults() *CheckPodTicketParams
- func (o *CheckPodTicketParams) WithHTTPClient(client *http.Client) *CheckPodTicketParams
- func (o *CheckPodTicketParams) WithTicketValue(ticketValue string) *CheckPodTicketParams
- func (o *CheckPodTicketParams) WithTimeout(timeout time.Duration) *CheckPodTicketParams
- func (o *CheckPodTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CheckPodTicketReader
- type Client
- func (a *Client) CheckPodTicket(params *CheckPodTicketParams, opts ...ClientOption) (*CheckPodTicketOK, error)
- func (a *Client) CreatePodTicket(params *CreatePodTicketParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePodTicketCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreatePodTicketBody
- type CreatePodTicketCreated
- type CreatePodTicketForbidden
- type CreatePodTicketInternalServerError
- type CreatePodTicketParams
- func NewCreatePodTicketParams() *CreatePodTicketParams
- func NewCreatePodTicketParamsWithContext(ctx context.Context) *CreatePodTicketParams
- func NewCreatePodTicketParamsWithHTTPClient(client *http.Client) *CreatePodTicketParams
- func NewCreatePodTicketParamsWithTimeout(timeout time.Duration) *CreatePodTicketParams
- func (o *CreatePodTicketParams) SetBody(body CreatePodTicketBody)
- func (o *CreatePodTicketParams) SetContext(ctx context.Context)
- func (o *CreatePodTicketParams) SetDefaults()
- func (o *CreatePodTicketParams) SetHTTPClient(client *http.Client)
- func (o *CreatePodTicketParams) SetTimeout(timeout time.Duration)
- func (o *CreatePodTicketParams) WithBody(body CreatePodTicketBody) *CreatePodTicketParams
- func (o *CreatePodTicketParams) WithContext(ctx context.Context) *CreatePodTicketParams
- func (o *CreatePodTicketParams) WithDefaults() *CreatePodTicketParams
- func (o *CreatePodTicketParams) WithHTTPClient(client *http.Client) *CreatePodTicketParams
- func (o *CreatePodTicketParams) WithTimeout(timeout time.Duration) *CreatePodTicketParams
- func (o *CreatePodTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePodTicketReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckPodTicketForbidden ¶
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 ¶
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 (o *CheckPodTicketInternalServerError) Error() string
func (*CheckPodTicketInternalServerError) GetPayload ¶
func (o *CheckPodTicketInternalServerError) GetPayload() *models.Error
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 ¶
func (o *CheckPodTicketParams) WithContext(ctx context.Context) *CheckPodTicketParams
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 ¶
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
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 ¶
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 ¶
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 (o *CreatePodTicketInternalServerError) Error() string
func (*CreatePodTicketInternalServerError) GetPayload ¶
func (o *CreatePodTicketInternalServerError) GetPayload() *models.Error
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 ¶
func (o *CreatePodTicketParams) WithBody(body CreatePodTicketBody) *CreatePodTicketParams
WithBody adds the body to the create pod ticket params
func (*CreatePodTicketParams) WithContext ¶
func (o *CreatePodTicketParams) WithContext(ctx context.Context) *CreatePodTicketParams
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.