ssh_keys

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: BSD-3-Clause, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PostProjectSSHKeyParamsBodyDataTypeSSHKeys captures enum value "ssh_keys"
	PostProjectSSHKeyParamsBodyDataTypeSSHKeys string = "ssh_keys"
)
View Source
const (

	// PutProjectSSHKeyParamsBodyDataTypeSSHKeys captures enum value "ssh_keys"
	PutProjectSSHKeyParamsBodyDataTypeSSHKeys string = "ssh_keys"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for ssh keys API

func (*Client) DeleteProjectSSHKey

func (a *Client) DeleteProjectSSHKey(params *DeleteProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectSSHKeyOK, error)

DeleteProjectSSHKey deletes a project SSH key

Allow you remove SSH Keys in a project. Remove a SSH Key from the project won't revoke the SSH Keys access for previously deploy and reinstall actions.

func (*Client) GetProjectSSHKey

func (a *Client) GetProjectSSHKey(params *GetProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectSSHKeyOK, error)

GetProjectSSHKey retrieves a project SSH key

List all SSH Keys in the project. These keys can be used to access servers after deploy and reinstall actions.

func (*Client) GetProjectSSHKeys

func (a *Client) GetProjectSSHKeys(params *GetProjectSSHKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectSSHKeysOK, error)

GetProjectSSHKeys lists all project SSH keys

List all SSH Keys in the project. These keys can be used to access servers after deploy and reinstall actions.

func (*Client) PostProjectSSHKey

func (a *Client) PostProjectSSHKey(params *PostProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostProjectSSHKeyCreated, error)

PostProjectSSHKey creates a project SSH key

Allow you create SSH Keys in a project. These keys can be used to access servers after deploy and reinstall actions.

func (*Client) PutProjectSSHKey

func (a *Client) PutProjectSSHKey(params *PutProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutProjectSSHKeyOK, error)

PutProjectSSHKey updates a project SSH key

Allow you update SSH Key in a project. These keys can be used to access servers after deploy and reinstall actions.

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 {
	DeleteProjectSSHKey(params *DeleteProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectSSHKeyOK, error)

	GetProjectSSHKey(params *GetProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectSSHKeyOK, error)

	GetProjectSSHKeys(params *GetProjectSSHKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectSSHKeysOK, error)

	PostProjectSSHKey(params *PostProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostProjectSSHKeyCreated, error)

	PutProjectSSHKey(params *PutProjectSSHKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutProjectSSHKeyOK, 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 ssh keys API client.

type DeleteProjectSSHKeyOK

type DeleteProjectSSHKeyOK struct {
}

DeleteProjectSSHKeyOK describes a response with status code 200, with default header values.

Success

func NewDeleteProjectSSHKeyOK

func NewDeleteProjectSSHKeyOK() *DeleteProjectSSHKeyOK

NewDeleteProjectSSHKeyOK creates a DeleteProjectSSHKeyOK with default headers values

func (*DeleteProjectSSHKeyOK) Code

func (o *DeleteProjectSSHKeyOK) Code() int

Code gets the status code for the delete project Ssh key o k response

func (*DeleteProjectSSHKeyOK) Error

func (o *DeleteProjectSSHKeyOK) Error() string

func (*DeleteProjectSSHKeyOK) IsClientError

func (o *DeleteProjectSSHKeyOK) IsClientError() bool

IsClientError returns true when this delete project Ssh key o k response has a 4xx status code

func (*DeleteProjectSSHKeyOK) IsCode

func (o *DeleteProjectSSHKeyOK) IsCode(code int) bool

IsCode returns true when this delete project Ssh key o k response a status code equal to that given

func (*DeleteProjectSSHKeyOK) IsRedirect

func (o *DeleteProjectSSHKeyOK) IsRedirect() bool

IsRedirect returns true when this delete project Ssh key o k response has a 3xx status code

func (*DeleteProjectSSHKeyOK) IsServerError

func (o *DeleteProjectSSHKeyOK) IsServerError() bool

IsServerError returns true when this delete project Ssh key o k response has a 5xx status code

func (*DeleteProjectSSHKeyOK) IsSuccess

func (o *DeleteProjectSSHKeyOK) IsSuccess() bool

IsSuccess returns true when this delete project Ssh key o k response has a 2xx status code

func (*DeleteProjectSSHKeyOK) Render

func (o *DeleteProjectSSHKeyOK) Render()

func (*DeleteProjectSSHKeyOK) String

func (o *DeleteProjectSSHKeyOK) String() string

type DeleteProjectSSHKeyParams

type DeleteProjectSSHKeyParams struct {
	ProjectIDOrSlug string `json:"project"`
	SSHKeyID        string `json:"id"`

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

DeleteProjectSSHKeyParams contains all the parameters to send to the API endpoint

for the delete project ssh key operation.

Typically these are written to a http.Request.

func NewDeleteProjectSSHKeyParams

func NewDeleteProjectSSHKeyParams() *DeleteProjectSSHKeyParams

NewDeleteProjectSSHKeyParams creates a new DeleteProjectSSHKeyParams 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 NewDeleteProjectSSHKeyParamsWithContext

func NewDeleteProjectSSHKeyParamsWithContext(ctx context.Context) *DeleteProjectSSHKeyParams

NewDeleteProjectSSHKeyParamsWithContext creates a new DeleteProjectSSHKeyParams object with the ability to set a context for a request.

func NewDeleteProjectSSHKeyParamsWithHTTPClient

func NewDeleteProjectSSHKeyParamsWithHTTPClient(client *http.Client) *DeleteProjectSSHKeyParams

NewDeleteProjectSSHKeyParamsWithHTTPClient creates a new DeleteProjectSSHKeyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteProjectSSHKeyParamsWithTimeout

func NewDeleteProjectSSHKeyParamsWithTimeout(timeout time.Duration) *DeleteProjectSSHKeyParams

NewDeleteProjectSSHKeyParamsWithTimeout creates a new DeleteProjectSSHKeyParams object with the ability to set a timeout on a request.

func (*DeleteProjectSSHKeyParams) SetContext

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

SetContext adds the context to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) SetDefaults

func (o *DeleteProjectSSHKeyParams) SetDefaults()

SetDefaults hydrates default values in the delete project ssh key params (not the query body).

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

func (*DeleteProjectSSHKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) SetProjectIDOrSlug

func (o *DeleteProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)

SetProjectIDOrSlug adds the projectIdOrSlug to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) SetSSHKeyID

func (o *DeleteProjectSSHKeyParams) SetSSHKeyID(sSHKeyID string)

SetSSHKeyID adds the sshKeyId to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) SetTimeout

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

SetTimeout adds the timeout to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) WithContext

WithContext adds the context to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) WithDefaults

WithDefaults hydrates default values in the delete project ssh key params (not the query body).

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

func (*DeleteProjectSSHKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) WithProjectIDOrSlug

func (o *DeleteProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *DeleteProjectSSHKeyParams

WithProjectIDOrSlug adds the projectIDOrSlug to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) WithSSHKeyID

func (o *DeleteProjectSSHKeyParams) WithSSHKeyID(sSHKeyID string) *DeleteProjectSSHKeyParams

WithSSHKeyID adds the sSHKeyID to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) WithTimeout

WithTimeout adds the timeout to the delete project ssh key params

func (*DeleteProjectSSHKeyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteProjectSSHKeyReader

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

DeleteProjectSSHKeyReader is a Reader for the DeleteProjectSSHKey structure.

func (*DeleteProjectSSHKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProjectSSHKeyOK

type GetProjectSSHKeyOK struct {
	Payload *GetProjectSSHKeyOKBody
}

GetProjectSSHKeyOK describes a response with status code 200, with default header values.

Success

func NewGetProjectSSHKeyOK

func NewGetProjectSSHKeyOK() *GetProjectSSHKeyOK

NewGetProjectSSHKeyOK creates a GetProjectSSHKeyOK with default headers values

func (*GetProjectSSHKeyOK) Code

func (o *GetProjectSSHKeyOK) Code() int

Code gets the status code for the get project Ssh key o k response

func (*GetProjectSSHKeyOK) Error

func (o *GetProjectSSHKeyOK) Error() string

func (*GetProjectSSHKeyOK) GetData

func (o *GetProjectSSHKeyOK) GetData() []renderer.ResponseData

func (*GetProjectSSHKeyOK) GetPayload

func (o *GetProjectSSHKeyOK) GetPayload() *GetProjectSSHKeyOKBody

func (*GetProjectSSHKeyOK) IsClientError

func (o *GetProjectSSHKeyOK) IsClientError() bool

IsClientError returns true when this get project Ssh key o k response has a 4xx status code

func (*GetProjectSSHKeyOK) IsCode

func (o *GetProjectSSHKeyOK) IsCode(code int) bool

IsCode returns true when this get project Ssh key o k response a status code equal to that given

func (*GetProjectSSHKeyOK) IsRedirect

func (o *GetProjectSSHKeyOK) IsRedirect() bool

IsRedirect returns true when this get project Ssh key o k response has a 3xx status code

func (*GetProjectSSHKeyOK) IsServerError

func (o *GetProjectSSHKeyOK) IsServerError() bool

IsServerError returns true when this get project Ssh key o k response has a 5xx status code

func (*GetProjectSSHKeyOK) IsSuccess

func (o *GetProjectSSHKeyOK) IsSuccess() bool

IsSuccess returns true when this get project Ssh key o k response has a 2xx status code

func (*GetProjectSSHKeyOK) String

func (o *GetProjectSSHKeyOK) String() string

type GetProjectSSHKeyOKBody

type GetProjectSSHKeyOKBody struct {

	// data
	Data *models.SSHKeyData `json:"data,omitempty"`
}

GetProjectSSHKeyOKBody get project SSH key o k body swagger:model GetProjectSSHKeyOKBody

func (*GetProjectSSHKeyOKBody) ContextValidate

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

ContextValidate validate this get project SSH key o k body based on the context it is used

func (*GetProjectSSHKeyOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetProjectSSHKeyOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetProjectSSHKeyOKBody) Validate

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

Validate validates this get project SSH key o k body

type GetProjectSSHKeyParams

type GetProjectSSHKeyParams struct {

	// ProjectIDOrSlug.
	ProjectIDOrSlug string

	// SSHKeyID.
	SSHKeyID string

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

GetProjectSSHKeyParams contains all the parameters to send to the API endpoint

for the get project ssh key operation.

Typically these are written to a http.Request.

func NewGetProjectSSHKeyParams

func NewGetProjectSSHKeyParams() *GetProjectSSHKeyParams

NewGetProjectSSHKeyParams creates a new GetProjectSSHKeyParams 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 NewGetProjectSSHKeyParamsWithContext

func NewGetProjectSSHKeyParamsWithContext(ctx context.Context) *GetProjectSSHKeyParams

NewGetProjectSSHKeyParamsWithContext creates a new GetProjectSSHKeyParams object with the ability to set a context for a request.

func NewGetProjectSSHKeyParamsWithHTTPClient

func NewGetProjectSSHKeyParamsWithHTTPClient(client *http.Client) *GetProjectSSHKeyParams

NewGetProjectSSHKeyParamsWithHTTPClient creates a new GetProjectSSHKeyParams object with the ability to set a custom HTTPClient for a request.

func NewGetProjectSSHKeyParamsWithTimeout

func NewGetProjectSSHKeyParamsWithTimeout(timeout time.Duration) *GetProjectSSHKeyParams

NewGetProjectSSHKeyParamsWithTimeout creates a new GetProjectSSHKeyParams object with the ability to set a timeout on a request.

func (*GetProjectSSHKeyParams) SetContext

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

SetContext adds the context to the get project ssh key params

func (*GetProjectSSHKeyParams) SetDefaults

func (o *GetProjectSSHKeyParams) SetDefaults()

SetDefaults hydrates default values in the get project ssh key params (not the query body).

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

func (*GetProjectSSHKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get project ssh key params

func (*GetProjectSSHKeyParams) SetProjectIDOrSlug

func (o *GetProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)

SetProjectIDOrSlug adds the projectIdOrSlug to the get project ssh key params

func (*GetProjectSSHKeyParams) SetSSHKeyID

func (o *GetProjectSSHKeyParams) SetSSHKeyID(sSHKeyID string)

SetSSHKeyID adds the sshKeyId to the get project ssh key params

func (*GetProjectSSHKeyParams) SetTimeout

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

SetTimeout adds the timeout to the get project ssh key params

func (*GetProjectSSHKeyParams) WithContext

WithContext adds the context to the get project ssh key params

func (*GetProjectSSHKeyParams) WithDefaults

WithDefaults hydrates default values in the get project ssh key params (not the query body).

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

func (*GetProjectSSHKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get project ssh key params

func (*GetProjectSSHKeyParams) WithProjectIDOrSlug

func (o *GetProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *GetProjectSSHKeyParams

WithProjectIDOrSlug adds the projectIDOrSlug to the get project ssh key params

func (*GetProjectSSHKeyParams) WithSSHKeyID

func (o *GetProjectSSHKeyParams) WithSSHKeyID(sSHKeyID string) *GetProjectSSHKeyParams

WithSSHKeyID adds the sSHKeyID to the get project ssh key params

func (*GetProjectSSHKeyParams) WithTimeout

WithTimeout adds the timeout to the get project ssh key params

func (*GetProjectSSHKeyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetProjectSSHKeyReader

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

GetProjectSSHKeyReader is a Reader for the GetProjectSSHKey structure.

func (*GetProjectSSHKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProjectSSHKeysOK

type GetProjectSSHKeysOK struct {
	Payload *models.SSHKey
}

GetProjectSSHKeysOK describes a response with status code 200, with default header values.

Success

func NewGetProjectSSHKeysOK

func NewGetProjectSSHKeysOK() *GetProjectSSHKeysOK

NewGetProjectSSHKeysOK creates a GetProjectSSHKeysOK with default headers values

func (*GetProjectSSHKeysOK) Code

func (o *GetProjectSSHKeysOK) Code() int

Code gets the status code for the get project Ssh keys o k response

func (*GetProjectSSHKeysOK) Error

func (o *GetProjectSSHKeysOK) Error() string

func (*GetProjectSSHKeysOK) GetData

func (o *GetProjectSSHKeysOK) GetData() []renderer.ResponseData

func (*GetProjectSSHKeysOK) GetPayload

func (o *GetProjectSSHKeysOK) GetPayload() *models.SSHKey

func (*GetProjectSSHKeysOK) IsClientError

func (o *GetProjectSSHKeysOK) IsClientError() bool

IsClientError returns true when this get project Ssh keys o k response has a 4xx status code

func (*GetProjectSSHKeysOK) IsCode

func (o *GetProjectSSHKeysOK) IsCode(code int) bool

IsCode returns true when this get project Ssh keys o k response a status code equal to that given

func (*GetProjectSSHKeysOK) IsRedirect

func (o *GetProjectSSHKeysOK) IsRedirect() bool

IsRedirect returns true when this get project Ssh keys o k response has a 3xx status code

func (*GetProjectSSHKeysOK) IsServerError

func (o *GetProjectSSHKeysOK) IsServerError() bool

IsServerError returns true when this get project Ssh keys o k response has a 5xx status code

func (*GetProjectSSHKeysOK) IsSuccess

func (o *GetProjectSSHKeysOK) IsSuccess() bool

IsSuccess returns true when this get project Ssh keys o k response has a 2xx status code

func (*GetProjectSSHKeysOK) String

func (o *GetProjectSSHKeysOK) String() string

type GetProjectSSHKeysParams

type GetProjectSSHKeysParams struct {

	// ProjectIDOrSlug.
	ProjectIDOrSlug string

	FilterTags *string

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

GetProjectSSHKeysParams contains all the parameters to send to the API endpoint

for the get project ssh keys operation.

Typically these are written to a http.Request.

func NewGetProjectSSHKeysParams

func NewGetProjectSSHKeysParams() *GetProjectSSHKeysParams

NewGetProjectSSHKeysParams creates a new GetProjectSSHKeysParams 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 NewGetProjectSSHKeysParamsWithContext

func NewGetProjectSSHKeysParamsWithContext(ctx context.Context) *GetProjectSSHKeysParams

NewGetProjectSSHKeysParamsWithContext creates a new GetProjectSSHKeysParams object with the ability to set a context for a request.

func NewGetProjectSSHKeysParamsWithHTTPClient

func NewGetProjectSSHKeysParamsWithHTTPClient(client *http.Client) *GetProjectSSHKeysParams

NewGetProjectSSHKeysParamsWithHTTPClient creates a new GetProjectSSHKeysParams object with the ability to set a custom HTTPClient for a request.

func NewGetProjectSSHKeysParamsWithTimeout

func NewGetProjectSSHKeysParamsWithTimeout(timeout time.Duration) *GetProjectSSHKeysParams

NewGetProjectSSHKeysParamsWithTimeout creates a new GetProjectSSHKeysParams object with the ability to set a timeout on a request.

func (*GetProjectSSHKeysParams) SetContext

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

SetContext adds the context to the get project ssh keys params

func (*GetProjectSSHKeysParams) SetDefaults

func (o *GetProjectSSHKeysParams) SetDefaults()

SetDefaults hydrates default values in the get project ssh keys params (not the query body).

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

func (*GetProjectSSHKeysParams) SetFilterTags

func (o *GetProjectSSHKeysParams) SetFilterTags(filterTags *string)

func (*GetProjectSSHKeysParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get project ssh keys params

func (*GetProjectSSHKeysParams) SetProjectIDOrSlug

func (o *GetProjectSSHKeysParams) SetProjectIDOrSlug(projectIDOrSlug string)

SetProjectIDOrSlug adds the projectIdOrSlug to the get project ssh keys params

func (*GetProjectSSHKeysParams) SetTimeout

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

SetTimeout adds the timeout to the get project ssh keys params

func (*GetProjectSSHKeysParams) WithContext

WithContext adds the context to the get project ssh keys params

func (*GetProjectSSHKeysParams) WithDefaults

WithDefaults hydrates default values in the get project ssh keys params (not the query body).

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

func (*GetProjectSSHKeysParams) WithFilterTags

func (o *GetProjectSSHKeysParams) WithFilterTags(filterTags *string) *GetProjectSSHKeysParams

func (*GetProjectSSHKeysParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get project ssh keys params

func (*GetProjectSSHKeysParams) WithProjectIDOrSlug

func (o *GetProjectSSHKeysParams) WithProjectIDOrSlug(projectIDOrSlug string) *GetProjectSSHKeysParams

WithProjectIDOrSlug adds the projectIDOrSlug to the get project ssh keys params

func (*GetProjectSSHKeysParams) WithTimeout

WithTimeout adds the timeout to the get project ssh keys params

func (*GetProjectSSHKeysParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetProjectSSHKeysReader

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

GetProjectSSHKeysReader is a Reader for the GetProjectSSHKeys structure.

func (*GetProjectSSHKeysReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostProjectSSHKeyBody

type PostProjectSSHKeyBody struct {

	// data
	// Required: true
	Data *PostProjectSSHKeyParamsBodyData `json:"data"`
}

PostProjectSSHKeyBody post project SSH key body swagger:model PostProjectSSHKeyBody

func (*PostProjectSSHKeyBody) ContextValidate

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

ContextValidate validate this post project SSH key body based on the context it is used

func (*PostProjectSSHKeyBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostProjectSSHKeyBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostProjectSSHKeyBody) Validate

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

Validate validates this post project SSH key body

type PostProjectSSHKeyCreated

type PostProjectSSHKeyCreated struct {
	Payload *PostProjectSSHKeyCreatedBody
}

PostProjectSSHKeyCreated describes a response with status code 201, with default header values.

Created

func NewPostProjectSSHKeyCreated

func NewPostProjectSSHKeyCreated() *PostProjectSSHKeyCreated

NewPostProjectSSHKeyCreated creates a PostProjectSSHKeyCreated with default headers values

func (*PostProjectSSHKeyCreated) Code

func (o *PostProjectSSHKeyCreated) Code() int

Code gets the status code for the post project Ssh key created response

func (*PostProjectSSHKeyCreated) Error

func (o *PostProjectSSHKeyCreated) Error() string

func (*PostProjectSSHKeyCreated) GetData

func (*PostProjectSSHKeyCreated) GetPayload

func (*PostProjectSSHKeyCreated) IsClientError

func (o *PostProjectSSHKeyCreated) IsClientError() bool

IsClientError returns true when this post project Ssh key created response has a 4xx status code

func (*PostProjectSSHKeyCreated) IsCode

func (o *PostProjectSSHKeyCreated) IsCode(code int) bool

IsCode returns true when this post project Ssh key created response a status code equal to that given

func (*PostProjectSSHKeyCreated) IsRedirect

func (o *PostProjectSSHKeyCreated) IsRedirect() bool

IsRedirect returns true when this post project Ssh key created response has a 3xx status code

func (*PostProjectSSHKeyCreated) IsServerError

func (o *PostProjectSSHKeyCreated) IsServerError() bool

IsServerError returns true when this post project Ssh key created response has a 5xx status code

func (*PostProjectSSHKeyCreated) IsSuccess

func (o *PostProjectSSHKeyCreated) IsSuccess() bool

IsSuccess returns true when this post project Ssh key created response has a 2xx status code

func (*PostProjectSSHKeyCreated) String

func (o *PostProjectSSHKeyCreated) String() string

type PostProjectSSHKeyCreatedBody

type PostProjectSSHKeyCreatedBody struct {

	// data
	Data *models.SSHKeyData `json:"data,omitempty"`
}

PostProjectSSHKeyCreatedBody post project SSH key created body swagger:model PostProjectSSHKeyCreatedBody

func (*PostProjectSSHKeyCreatedBody) ContextValidate

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

ContextValidate validate this post project SSH key created body based on the context it is used

func (*PostProjectSSHKeyCreatedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostProjectSSHKeyCreatedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostProjectSSHKeyCreatedBody) Validate

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

Validate validates this post project SSH key created body

type PostProjectSSHKeyParams

type PostProjectSSHKeyParams struct {

	// Body.
	Body PostProjectSSHKeyBody

	// ProjectIDOrSlug.
	ProjectIDOrSlug string `json:"project"`

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

PostProjectSSHKeyParams contains all the parameters to send to the API endpoint

for the post project ssh key operation.

Typically these are written to a http.Request.

func NewPostProjectSSHKeyParams

func NewPostProjectSSHKeyParams() *PostProjectSSHKeyParams

NewPostProjectSSHKeyParams creates a new PostProjectSSHKeyParams 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 NewPostProjectSSHKeyParamsWithContext

func NewPostProjectSSHKeyParamsWithContext(ctx context.Context) *PostProjectSSHKeyParams

NewPostProjectSSHKeyParamsWithContext creates a new PostProjectSSHKeyParams object with the ability to set a context for a request.

func NewPostProjectSSHKeyParamsWithHTTPClient

func NewPostProjectSSHKeyParamsWithHTTPClient(client *http.Client) *PostProjectSSHKeyParams

NewPostProjectSSHKeyParamsWithHTTPClient creates a new PostProjectSSHKeyParams object with the ability to set a custom HTTPClient for a request.

func NewPostProjectSSHKeyParamsWithTimeout

func NewPostProjectSSHKeyParamsWithTimeout(timeout time.Duration) *PostProjectSSHKeyParams

NewPostProjectSSHKeyParamsWithTimeout creates a new PostProjectSSHKeyParams object with the ability to set a timeout on a request.

func (*PostProjectSSHKeyParams) SetBody

SetBody adds the body to the post project ssh key params

func (*PostProjectSSHKeyParams) SetContext

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

SetContext adds the context to the post project ssh key params

func (*PostProjectSSHKeyParams) SetDefaults

func (o *PostProjectSSHKeyParams) SetDefaults()

SetDefaults hydrates default values in the post project ssh key params (not the query body).

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

func (*PostProjectSSHKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post project ssh key params

func (*PostProjectSSHKeyParams) SetProjectIDOrSlug

func (o *PostProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)

SetProjectIDOrSlug adds the projectIdOrSlug to the post project ssh key params

func (*PostProjectSSHKeyParams) SetTimeout

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

SetTimeout adds the timeout to the post project ssh key params

func (*PostProjectSSHKeyParams) WithBody

WithBody adds the body to the post project ssh key params

func (*PostProjectSSHKeyParams) WithContext

WithContext adds the context to the post project ssh key params

func (*PostProjectSSHKeyParams) WithDefaults

WithDefaults hydrates default values in the post project ssh key params (not the query body).

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

func (*PostProjectSSHKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post project ssh key params

func (*PostProjectSSHKeyParams) WithProjectIDOrSlug

func (o *PostProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *PostProjectSSHKeyParams

WithProjectIDOrSlug adds the projectIDOrSlug to the post project ssh key params

func (*PostProjectSSHKeyParams) WithTimeout

WithTimeout adds the timeout to the post project ssh key params

func (*PostProjectSSHKeyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostProjectSSHKeyParamsBodyData

type PostProjectSSHKeyParamsBodyData struct {

	// attributes
	Attributes *PostProjectSSHKeyParamsBodyDataAttributes `json:"attributes,omitempty"`

	// type
	// Required: true
	// Enum: [ssh_keys]
	Type *string `json:"type"`
}

PostProjectSSHKeyParamsBodyData post project SSH key params body data swagger:model PostProjectSSHKeyParamsBodyData

func (*PostProjectSSHKeyParamsBodyData) ContextValidate

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

ContextValidate validate this post project SSH key params body data based on the context it is used

func (*PostProjectSSHKeyParamsBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*PostProjectSSHKeyParamsBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostProjectSSHKeyParamsBodyData) Validate

Validate validates this post project SSH key params body data

type PostProjectSSHKeyParamsBodyDataAttributes

type PostProjectSSHKeyParamsBodyDataAttributes struct {

	// Name of the SSH Key
	Name string `json:"name,omitempty"`

	// SSH Public Key
	PublicKey string `json:"public_key,omitempty"`
}

PostProjectSSHKeyParamsBodyDataAttributes post project SSH key params body data attributes swagger:model PostProjectSSHKeyParamsBodyDataAttributes

func (*PostProjectSSHKeyParamsBodyDataAttributes) ContextValidate

ContextValidate validates this post project SSH key params body data attributes based on context it is used

func (*PostProjectSSHKeyParamsBodyDataAttributes) MarshalBinary

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

MarshalBinary interface implementation

func (*PostProjectSSHKeyParamsBodyDataAttributes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostProjectSSHKeyParamsBodyDataAttributes) Validate

Validate validates this post project SSH key params body data attributes

type PostProjectSSHKeyReader

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

PostProjectSSHKeyReader is a Reader for the PostProjectSSHKey structure.

func (*PostProjectSSHKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutProjectSSHKeyBody

type PutProjectSSHKeyBody struct {

	// data
	// Required: true
	Data *PutProjectSSHKeyParamsBodyData `json:"data"`
}

PutProjectSSHKeyBody put project SSH key body swagger:model PutProjectSSHKeyBody

func (*PutProjectSSHKeyBody) ContextValidate

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

ContextValidate validate this put project SSH key body based on the context it is used

func (*PutProjectSSHKeyBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PutProjectSSHKeyBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PutProjectSSHKeyBody) Validate

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

Validate validates this put project SSH key body

type PutProjectSSHKeyOK

type PutProjectSSHKeyOK struct {
	Payload *PutProjectSSHKeyOKBody
}

PutProjectSSHKeyOK describes a response with status code 200, with default header values.

Success

func NewPutProjectSSHKeyOK

func NewPutProjectSSHKeyOK() *PutProjectSSHKeyOK

NewPutProjectSSHKeyOK creates a PutProjectSSHKeyOK with default headers values

func (*PutProjectSSHKeyOK) Code

func (o *PutProjectSSHKeyOK) Code() int

Code gets the status code for the put project Ssh key o k response

func (*PutProjectSSHKeyOK) Error

func (o *PutProjectSSHKeyOK) Error() string

func (*PutProjectSSHKeyOK) GetData

func (o *PutProjectSSHKeyOK) GetData() []renderer.ResponseData

func (*PutProjectSSHKeyOK) GetPayload

func (o *PutProjectSSHKeyOK) GetPayload() *PutProjectSSHKeyOKBody

func (*PutProjectSSHKeyOK) IsClientError

func (o *PutProjectSSHKeyOK) IsClientError() bool

IsClientError returns true when this put project Ssh key o k response has a 4xx status code

func (*PutProjectSSHKeyOK) IsCode

func (o *PutProjectSSHKeyOK) IsCode(code int) bool

IsCode returns true when this put project Ssh key o k response a status code equal to that given

func (*PutProjectSSHKeyOK) IsRedirect

func (o *PutProjectSSHKeyOK) IsRedirect() bool

IsRedirect returns true when this put project Ssh key o k response has a 3xx status code

func (*PutProjectSSHKeyOK) IsServerError

func (o *PutProjectSSHKeyOK) IsServerError() bool

IsServerError returns true when this put project Ssh key o k response has a 5xx status code

func (*PutProjectSSHKeyOK) IsSuccess

func (o *PutProjectSSHKeyOK) IsSuccess() bool

IsSuccess returns true when this put project Ssh key o k response has a 2xx status code

func (*PutProjectSSHKeyOK) String

func (o *PutProjectSSHKeyOK) String() string

type PutProjectSSHKeyOKBody

type PutProjectSSHKeyOKBody struct {

	// data
	Data *models.SSHKeyData `json:"data,omitempty"`
}

PutProjectSSHKeyOKBody put project SSH key o k body swagger:model PutProjectSSHKeyOKBody

func (*PutProjectSSHKeyOKBody) ContextValidate

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

ContextValidate validate this put project SSH key o k body based on the context it is used

func (*PutProjectSSHKeyOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PutProjectSSHKeyOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PutProjectSSHKeyOKBody) Validate

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

Validate validates this put project SSH key o k body

type PutProjectSSHKeyParams

type PutProjectSSHKeyParams struct {

	// Body.
	Body PutProjectSSHKeyBody

	// ProjectIDOrSlug.
	ProjectIDOrSlug string `json:"project"`

	// SSHKeyID.
	SSHKeyID string `json:"id"`

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

PutProjectSSHKeyParams contains all the parameters to send to the API endpoint

for the put project ssh key operation.

Typically these are written to a http.Request.

func NewPutProjectSSHKeyParams

func NewPutProjectSSHKeyParams() *PutProjectSSHKeyParams

NewPutProjectSSHKeyParams creates a new PutProjectSSHKeyParams 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 NewPutProjectSSHKeyParamsWithContext

func NewPutProjectSSHKeyParamsWithContext(ctx context.Context) *PutProjectSSHKeyParams

NewPutProjectSSHKeyParamsWithContext creates a new PutProjectSSHKeyParams object with the ability to set a context for a request.

func NewPutProjectSSHKeyParamsWithHTTPClient

func NewPutProjectSSHKeyParamsWithHTTPClient(client *http.Client) *PutProjectSSHKeyParams

NewPutProjectSSHKeyParamsWithHTTPClient creates a new PutProjectSSHKeyParams object with the ability to set a custom HTTPClient for a request.

func NewPutProjectSSHKeyParamsWithTimeout

func NewPutProjectSSHKeyParamsWithTimeout(timeout time.Duration) *PutProjectSSHKeyParams

NewPutProjectSSHKeyParamsWithTimeout creates a new PutProjectSSHKeyParams object with the ability to set a timeout on a request.

func (*PutProjectSSHKeyParams) SetBody

SetBody adds the body to the put project ssh key params

func (*PutProjectSSHKeyParams) SetContext

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

SetContext adds the context to the put project ssh key params

func (*PutProjectSSHKeyParams) SetDefaults

func (o *PutProjectSSHKeyParams) SetDefaults()

SetDefaults hydrates default values in the put project ssh key params (not the query body).

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

func (*PutProjectSSHKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put project ssh key params

func (*PutProjectSSHKeyParams) SetProjectIDOrSlug

func (o *PutProjectSSHKeyParams) SetProjectIDOrSlug(projectIDOrSlug string)

SetProjectIDOrSlug adds the projectIdOrSlug to the put project ssh key params

func (*PutProjectSSHKeyParams) SetSSHKeyID

func (o *PutProjectSSHKeyParams) SetSSHKeyID(sSHKeyID string)

SetSSHKeyID adds the sshKeyId to the put project ssh key params

func (*PutProjectSSHKeyParams) SetTimeout

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

SetTimeout adds the timeout to the put project ssh key params

func (*PutProjectSSHKeyParams) WithBody

WithBody adds the body to the put project ssh key params

func (*PutProjectSSHKeyParams) WithContext

WithContext adds the context to the put project ssh key params

func (*PutProjectSSHKeyParams) WithDefaults

WithDefaults hydrates default values in the put project ssh key params (not the query body).

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

func (*PutProjectSSHKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put project ssh key params

func (*PutProjectSSHKeyParams) WithProjectIDOrSlug

func (o *PutProjectSSHKeyParams) WithProjectIDOrSlug(projectIDOrSlug string) *PutProjectSSHKeyParams

WithProjectIDOrSlug adds the projectIDOrSlug to the put project ssh key params

func (*PutProjectSSHKeyParams) WithSSHKeyID

func (o *PutProjectSSHKeyParams) WithSSHKeyID(sSHKeyID string) *PutProjectSSHKeyParams

WithSSHKeyID adds the sSHKeyID to the put project ssh key params

func (*PutProjectSSHKeyParams) WithTimeout

WithTimeout adds the timeout to the put project ssh key params

func (*PutProjectSSHKeyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutProjectSSHKeyParamsBodyData

type PutProjectSSHKeyParamsBodyData struct {

	// attributes
	Attributes *PutProjectSSHKeyParamsBodyDataAttributes `json:"attributes,omitempty"`

	// id
	// Required: true
	ID string `json:"id"`

	// type
	// Required: true
	// Enum: [ssh_keys]
	Type *string `json:"type"`
}

PutProjectSSHKeyParamsBodyData put project SSH key params body data swagger:model PutProjectSSHKeyParamsBodyData

func (*PutProjectSSHKeyParamsBodyData) ContextValidate

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

ContextValidate validate this put project SSH key params body data based on the context it is used

func (*PutProjectSSHKeyParamsBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*PutProjectSSHKeyParamsBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PutProjectSSHKeyParamsBodyData) Validate

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

Validate validates this put project SSH key params body data

type PutProjectSSHKeyParamsBodyDataAttributes

type PutProjectSSHKeyParamsBodyDataAttributes struct {

	// Name of the SSH Key
	Name string `json:"name,omitempty"`

	Tags []string `json:"tags,omitempty"`
}

PutProjectSSHKeyParamsBodyDataAttributes put project SSH key params body data attributes swagger:model PutProjectSSHKeyParamsBodyDataAttributes

func (*PutProjectSSHKeyParamsBodyDataAttributes) ContextValidate

ContextValidate validates this put project SSH key params body data attributes based on context it is used

func (*PutProjectSSHKeyParamsBodyDataAttributes) MarshalBinary

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

MarshalBinary interface implementation

func (*PutProjectSSHKeyParamsBodyDataAttributes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PutProjectSSHKeyParamsBodyDataAttributes) Validate

Validate validates this put project SSH key params body data attributes

type PutProjectSSHKeyReader

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

PutProjectSSHKeyReader is a Reader for the PutProjectSSHKey structure.

func (*PutProjectSSHKeyReader) ReadResponse

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