app_secrets

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 10 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 app secrets API

func New

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

New creates a new app secrets API client.

func (*Client) CreateClusterAppSecret

func (a *Client) CreateClusterAppSecret(params *CreateClusterAppSecretParams, authInfo runtime.ClientAuthInfoWriter) (*CreateClusterAppSecretOK, error)

CreateClusterAppSecret creates secret

This operation allows you to create a Secret for a specific app. The app does not have to exist before hand.

If the app does exist, this endpoint will ensure that the App CR gets it's `spec.user_config.secret` field set correctly.

However, if the app exists and the `spec.user_config.secret` is already set to something, then this request will fail. You will in that case most likely want to update the Secret using the `PATCH /v4/clusters/{cluster_id}/apps/{app_name}/secret/` endpoint.

### Example POST request ```json

{
  "secret": "value"
}

```

func (*Client) DeleteClusterAppSecret

func (a *Client) DeleteClusterAppSecret(params *DeleteClusterAppSecretParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClusterAppSecretOK, error)

DeleteClusterAppSecret deletes a secret

This operation allows a user to delete an app's Secret if it has been named according to the convention of {app-name}-user-secrets and stored in the cluster ID namespace.

Calling this endpoint will delete the Secret, and also remove the reference to the Secret in the (spec.user_config.secret field) from the app.

func (*Client) GetClusterAppSecret

func (a *Client) GetClusterAppSecret(params *GetClusterAppSecretParams, authInfo runtime.ClientAuthInfoWriter) (*GetClusterAppSecretOK, error)

GetClusterAppSecret gets secret

This operation allows you to fetch the Secret associated with an app.

func (*Client) ModifyClusterAppSecret

func (a *Client) ModifyClusterAppSecret(params *ModifyClusterAppSecretParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyClusterAppSecretOK, error)

ModifyClusterAppSecret modifies secret

This operation allows you to modify the Secret for a specific app. It's only possible to modify Secrets that have been named according to the convention of {app-name}-user-secrets and stored in the cluster ID namespace.

The full values key of the Secret will be replaced by the JSON body of your request.

### Example PATCH request ```json

{
  "secret": "new-value"
}

```

If the Secret contained content like:

```json

{
  "secret": "old-value",
  "secret2": "another-old-value"
}

```

Then the "secret2" will be removed, and "secret" will be set to "new-value"

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateClusterAppSecretBadRequest

type CreateClusterAppSecretBadRequest struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppSecretBadRequest handles this case with default header values.

Invalid input

func NewCreateClusterAppSecretBadRequest

func NewCreateClusterAppSecretBadRequest() *CreateClusterAppSecretBadRequest

NewCreateClusterAppSecretBadRequest creates a CreateClusterAppSecretBadRequest with default headers values

func (*CreateClusterAppSecretBadRequest) Error

type CreateClusterAppSecretConflict

type CreateClusterAppSecretConflict struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppSecretConflict handles this case with default header values.

Secret already exists

func NewCreateClusterAppSecretConflict

func NewCreateClusterAppSecretConflict() *CreateClusterAppSecretConflict

NewCreateClusterAppSecretConflict creates a CreateClusterAppSecretConflict with default headers values

func (*CreateClusterAppSecretConflict) Error

type CreateClusterAppSecretDefault

type CreateClusterAppSecretDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

CreateClusterAppSecretDefault handles this case with default header values.

Error

func NewCreateClusterAppSecretDefault

func NewCreateClusterAppSecretDefault(code int) *CreateClusterAppSecretDefault

NewCreateClusterAppSecretDefault creates a CreateClusterAppSecretDefault with default headers values

func (*CreateClusterAppSecretDefault) Code

Code gets the status code for the create cluster app secret default response

func (*CreateClusterAppSecretDefault) Error

type CreateClusterAppSecretOK

type CreateClusterAppSecretOK struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppSecretOK handles this case with default header values.

Success

func NewCreateClusterAppSecretOK

func NewCreateClusterAppSecretOK() *CreateClusterAppSecretOK

NewCreateClusterAppSecretOK creates a CreateClusterAppSecretOK with default headers values

func (*CreateClusterAppSecretOK) Error

func (o *CreateClusterAppSecretOK) Error() string

type CreateClusterAppSecretParams

type CreateClusterAppSecretParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*AppName
	  App Name

	*/
	AppName string
	/*Body*/
	Body models.V4CreateClusterAppSecretRequest
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

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

CreateClusterAppSecretParams contains all the parameters to send to the API endpoint for the create cluster app secret operation typically these are written to a http.Request

func NewCreateClusterAppSecretParams

func NewCreateClusterAppSecretParams() *CreateClusterAppSecretParams

NewCreateClusterAppSecretParams creates a new CreateClusterAppSecretParams object with the default values initialized.

func NewCreateClusterAppSecretParamsWithContext

func NewCreateClusterAppSecretParamsWithContext(ctx context.Context) *CreateClusterAppSecretParams

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

func NewCreateClusterAppSecretParamsWithHTTPClient

func NewCreateClusterAppSecretParamsWithHTTPClient(client *http.Client) *CreateClusterAppSecretParams

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

func NewCreateClusterAppSecretParamsWithTimeout

func NewCreateClusterAppSecretParamsWithTimeout(timeout time.Duration) *CreateClusterAppSecretParams

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

func (*CreateClusterAppSecretParams) SetAppName

func (o *CreateClusterAppSecretParams) SetAppName(appName string)

SetAppName adds the appName to the create cluster app secret params

func (*CreateClusterAppSecretParams) SetBody

SetBody adds the body to the create cluster app secret params

func (*CreateClusterAppSecretParams) SetClusterID

func (o *CreateClusterAppSecretParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the create cluster app secret params

func (*CreateClusterAppSecretParams) SetContext

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

SetContext adds the context to the create cluster app secret params

func (*CreateClusterAppSecretParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create cluster app secret params

func (*CreateClusterAppSecretParams) SetTimeout

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

SetTimeout adds the timeout to the create cluster app secret params

func (*CreateClusterAppSecretParams) SetXGiantSwarmActivity

func (o *CreateClusterAppSecretParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the create cluster app secret params

func (*CreateClusterAppSecretParams) SetXGiantSwarmCmdLine

func (o *CreateClusterAppSecretParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the create cluster app secret params

func (*CreateClusterAppSecretParams) SetXRequestID

func (o *CreateClusterAppSecretParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create cluster app secret params

func (*CreateClusterAppSecretParams) WithAppName

WithAppName adds the appName to the create cluster app secret params

func (*CreateClusterAppSecretParams) WithBody

WithBody adds the body to the create cluster app secret params

func (*CreateClusterAppSecretParams) WithClusterID

WithClusterID adds the clusterID to the create cluster app secret params

func (*CreateClusterAppSecretParams) WithContext

WithContext adds the context to the create cluster app secret params

func (*CreateClusterAppSecretParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create cluster app secret params

func (*CreateClusterAppSecretParams) WithTimeout

WithTimeout adds the timeout to the create cluster app secret params

func (*CreateClusterAppSecretParams) WithXGiantSwarmActivity

func (o *CreateClusterAppSecretParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *CreateClusterAppSecretParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the create cluster app secret params

func (*CreateClusterAppSecretParams) WithXGiantSwarmCmdLine

func (o *CreateClusterAppSecretParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *CreateClusterAppSecretParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the create cluster app secret params

func (*CreateClusterAppSecretParams) WithXRequestID

func (o *CreateClusterAppSecretParams) WithXRequestID(xRequestID *string) *CreateClusterAppSecretParams

WithXRequestID adds the xRequestID to the create cluster app secret params

func (*CreateClusterAppSecretParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateClusterAppSecretReader

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

CreateClusterAppSecretReader is a Reader for the CreateClusterAppSecret structure.

func (*CreateClusterAppSecretReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateClusterAppSecretUnauthorized

type CreateClusterAppSecretUnauthorized struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppSecretUnauthorized handles this case with default header values.

Permission denied

func NewCreateClusterAppSecretUnauthorized

func NewCreateClusterAppSecretUnauthorized() *CreateClusterAppSecretUnauthorized

NewCreateClusterAppSecretUnauthorized creates a CreateClusterAppSecretUnauthorized with default headers values

func (*CreateClusterAppSecretUnauthorized) Error

type DeleteClusterAppSecretDefault

type DeleteClusterAppSecretDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

DeleteClusterAppSecretDefault handles this case with default header values.

Error

func NewDeleteClusterAppSecretDefault

func NewDeleteClusterAppSecretDefault(code int) *DeleteClusterAppSecretDefault

NewDeleteClusterAppSecretDefault creates a DeleteClusterAppSecretDefault with default headers values

func (*DeleteClusterAppSecretDefault) Code

Code gets the status code for the delete cluster app secret default response

func (*DeleteClusterAppSecretDefault) Error

type DeleteClusterAppSecretNotFound

type DeleteClusterAppSecretNotFound struct {
	Payload *models.V4GenericResponse
}

DeleteClusterAppSecretNotFound handles this case with default header values.

Secret not found

func NewDeleteClusterAppSecretNotFound

func NewDeleteClusterAppSecretNotFound() *DeleteClusterAppSecretNotFound

NewDeleteClusterAppSecretNotFound creates a DeleteClusterAppSecretNotFound with default headers values

func (*DeleteClusterAppSecretNotFound) Error

type DeleteClusterAppSecretOK

type DeleteClusterAppSecretOK struct {
	Payload *models.V4GenericResponse
}

DeleteClusterAppSecretOK handles this case with default header values.

Secret deleted

func NewDeleteClusterAppSecretOK

func NewDeleteClusterAppSecretOK() *DeleteClusterAppSecretOK

NewDeleteClusterAppSecretOK creates a DeleteClusterAppSecretOK with default headers values

func (*DeleteClusterAppSecretOK) Error

func (o *DeleteClusterAppSecretOK) Error() string

type DeleteClusterAppSecretParams

type DeleteClusterAppSecretParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*AppName
	  App Name

	*/
	AppName string
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

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

DeleteClusterAppSecretParams contains all the parameters to send to the API endpoint for the delete cluster app secret operation typically these are written to a http.Request

func NewDeleteClusterAppSecretParams

func NewDeleteClusterAppSecretParams() *DeleteClusterAppSecretParams

NewDeleteClusterAppSecretParams creates a new DeleteClusterAppSecretParams object with the default values initialized.

func NewDeleteClusterAppSecretParamsWithContext

func NewDeleteClusterAppSecretParamsWithContext(ctx context.Context) *DeleteClusterAppSecretParams

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

func NewDeleteClusterAppSecretParamsWithHTTPClient

func NewDeleteClusterAppSecretParamsWithHTTPClient(client *http.Client) *DeleteClusterAppSecretParams

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

func NewDeleteClusterAppSecretParamsWithTimeout

func NewDeleteClusterAppSecretParamsWithTimeout(timeout time.Duration) *DeleteClusterAppSecretParams

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

func (*DeleteClusterAppSecretParams) SetAppName

func (o *DeleteClusterAppSecretParams) SetAppName(appName string)

SetAppName adds the appName to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) SetClusterID

func (o *DeleteClusterAppSecretParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) SetContext

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

SetContext adds the context to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) SetTimeout

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

SetTimeout adds the timeout to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) SetXGiantSwarmActivity

func (o *DeleteClusterAppSecretParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) SetXGiantSwarmCmdLine

func (o *DeleteClusterAppSecretParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) SetXRequestID

func (o *DeleteClusterAppSecretParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) WithAppName

WithAppName adds the appName to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) WithClusterID

WithClusterID adds the clusterID to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) WithContext

WithContext adds the context to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) WithTimeout

WithTimeout adds the timeout to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) WithXGiantSwarmActivity

func (o *DeleteClusterAppSecretParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *DeleteClusterAppSecretParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) WithXGiantSwarmCmdLine

func (o *DeleteClusterAppSecretParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *DeleteClusterAppSecretParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) WithXRequestID

func (o *DeleteClusterAppSecretParams) WithXRequestID(xRequestID *string) *DeleteClusterAppSecretParams

WithXRequestID adds the xRequestID to the delete cluster app secret params

func (*DeleteClusterAppSecretParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteClusterAppSecretReader

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

DeleteClusterAppSecretReader is a Reader for the DeleteClusterAppSecret structure.

func (*DeleteClusterAppSecretReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteClusterAppSecretUnauthorized

type DeleteClusterAppSecretUnauthorized struct {
	Payload *models.V4GenericResponse
}

DeleteClusterAppSecretUnauthorized handles this case with default header values.

Permission denied

func NewDeleteClusterAppSecretUnauthorized

func NewDeleteClusterAppSecretUnauthorized() *DeleteClusterAppSecretUnauthorized

NewDeleteClusterAppSecretUnauthorized creates a DeleteClusterAppSecretUnauthorized with default headers values

func (*DeleteClusterAppSecretUnauthorized) Error

type GetClusterAppSecretNotFound

type GetClusterAppSecretNotFound struct {
	Payload *models.V4GenericResponse
}

GetClusterAppSecretNotFound handles this case with default header values.

Secret not found

func NewGetClusterAppSecretNotFound

func NewGetClusterAppSecretNotFound() *GetClusterAppSecretNotFound

NewGetClusterAppSecretNotFound creates a GetClusterAppSecretNotFound with default headers values

func (*GetClusterAppSecretNotFound) Error

type GetClusterAppSecretOK

type GetClusterAppSecretOK struct {
	Payload models.V4GetClusterAppSecretResponse
}

GetClusterAppSecretOK handles this case with default header values.

Success

func NewGetClusterAppSecretOK

func NewGetClusterAppSecretOK() *GetClusterAppSecretOK

NewGetClusterAppSecretOK creates a GetClusterAppSecretOK with default headers values

func (*GetClusterAppSecretOK) Error

func (o *GetClusterAppSecretOK) Error() string

type GetClusterAppSecretParams

type GetClusterAppSecretParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*AppName
	  App Name

	*/
	AppName string
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

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

GetClusterAppSecretParams contains all the parameters to send to the API endpoint for the get cluster app secret operation typically these are written to a http.Request

func NewGetClusterAppSecretParams

func NewGetClusterAppSecretParams() *GetClusterAppSecretParams

NewGetClusterAppSecretParams creates a new GetClusterAppSecretParams object with the default values initialized.

func NewGetClusterAppSecretParamsWithContext

func NewGetClusterAppSecretParamsWithContext(ctx context.Context) *GetClusterAppSecretParams

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

func NewGetClusterAppSecretParamsWithHTTPClient

func NewGetClusterAppSecretParamsWithHTTPClient(client *http.Client) *GetClusterAppSecretParams

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

func NewGetClusterAppSecretParamsWithTimeout

func NewGetClusterAppSecretParamsWithTimeout(timeout time.Duration) *GetClusterAppSecretParams

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

func (*GetClusterAppSecretParams) SetAppName

func (o *GetClusterAppSecretParams) SetAppName(appName string)

SetAppName adds the appName to the get cluster app secret params

func (*GetClusterAppSecretParams) SetClusterID

func (o *GetClusterAppSecretParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get cluster app secret params

func (*GetClusterAppSecretParams) SetContext

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

SetContext adds the context to the get cluster app secret params

func (*GetClusterAppSecretParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get cluster app secret params

func (*GetClusterAppSecretParams) SetTimeout

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

SetTimeout adds the timeout to the get cluster app secret params

func (*GetClusterAppSecretParams) SetXGiantSwarmActivity

func (o *GetClusterAppSecretParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster app secret params

func (*GetClusterAppSecretParams) SetXGiantSwarmCmdLine

func (o *GetClusterAppSecretParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster app secret params

func (*GetClusterAppSecretParams) SetXRequestID

func (o *GetClusterAppSecretParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get cluster app secret params

func (*GetClusterAppSecretParams) WithAppName

WithAppName adds the appName to the get cluster app secret params

func (*GetClusterAppSecretParams) WithClusterID

func (o *GetClusterAppSecretParams) WithClusterID(clusterID string) *GetClusterAppSecretParams

WithClusterID adds the clusterID to the get cluster app secret params

func (*GetClusterAppSecretParams) WithContext

WithContext adds the context to the get cluster app secret params

func (*GetClusterAppSecretParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get cluster app secret params

func (*GetClusterAppSecretParams) WithTimeout

WithTimeout adds the timeout to the get cluster app secret params

func (*GetClusterAppSecretParams) WithXGiantSwarmActivity

func (o *GetClusterAppSecretParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetClusterAppSecretParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster app secret params

func (*GetClusterAppSecretParams) WithXGiantSwarmCmdLine

func (o *GetClusterAppSecretParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetClusterAppSecretParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster app secret params

func (*GetClusterAppSecretParams) WithXRequestID

func (o *GetClusterAppSecretParams) WithXRequestID(xRequestID *string) *GetClusterAppSecretParams

WithXRequestID adds the xRequestID to the get cluster app secret params

func (*GetClusterAppSecretParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetClusterAppSecretReader

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

GetClusterAppSecretReader is a Reader for the GetClusterAppSecret structure.

func (*GetClusterAppSecretReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClusterAppSecretUnauthorized

type GetClusterAppSecretUnauthorized struct {
	Payload *models.V4GenericResponse
}

GetClusterAppSecretUnauthorized handles this case with default header values.

Permission denied

func NewGetClusterAppSecretUnauthorized

func NewGetClusterAppSecretUnauthorized() *GetClusterAppSecretUnauthorized

NewGetClusterAppSecretUnauthorized creates a GetClusterAppSecretUnauthorized with default headers values

func (*GetClusterAppSecretUnauthorized) Error

type ModifyClusterAppSecretBadRequest

type ModifyClusterAppSecretBadRequest struct {
	Payload *models.V4GenericResponse
}

ModifyClusterAppSecretBadRequest handles this case with default header values.

Invalid input

func NewModifyClusterAppSecretBadRequest

func NewModifyClusterAppSecretBadRequest() *ModifyClusterAppSecretBadRequest

NewModifyClusterAppSecretBadRequest creates a ModifyClusterAppSecretBadRequest with default headers values

func (*ModifyClusterAppSecretBadRequest) Error

type ModifyClusterAppSecretDefault

type ModifyClusterAppSecretDefault struct {
	Payload *models.V4GenericResponse
	// contains filtered or unexported fields
}

ModifyClusterAppSecretDefault handles this case with default header values.

Error

func NewModifyClusterAppSecretDefault

func NewModifyClusterAppSecretDefault(code int) *ModifyClusterAppSecretDefault

NewModifyClusterAppSecretDefault creates a ModifyClusterAppSecretDefault with default headers values

func (*ModifyClusterAppSecretDefault) Code

Code gets the status code for the modify cluster app secret default response

func (*ModifyClusterAppSecretDefault) Error

type ModifyClusterAppSecretOK

type ModifyClusterAppSecretOK struct {
	Payload *models.V4GenericResponse
}

ModifyClusterAppSecretOK handles this case with default header values.

Success

func NewModifyClusterAppSecretOK

func NewModifyClusterAppSecretOK() *ModifyClusterAppSecretOK

NewModifyClusterAppSecretOK creates a ModifyClusterAppSecretOK with default headers values

func (*ModifyClusterAppSecretOK) Error

func (o *ModifyClusterAppSecretOK) Error() string

type ModifyClusterAppSecretParams

type ModifyClusterAppSecretParams struct {

	/*XGiantSwarmActivity
	  Name of an activity to track, like "list-clusters". This allows to
	analyze several API requests sent in context and gives an idea on
	the purpose.


	*/
	XGiantSwarmActivity *string
	/*XGiantSwarmCmdLine
	  If activity has been issued by a CLI, this header can contain the
	command line


	*/
	XGiantSwarmCmdLine *string
	/*XRequestID
	  A randomly generated key that can be used to track a request throughout
	services of Giant Swarm.


	*/
	XRequestID *string
	/*AppName
	  App Name

	*/
	AppName string
	/*Body*/
	Body models.V4CreateClusterAppSecretRequest
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

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

ModifyClusterAppSecretParams contains all the parameters to send to the API endpoint for the modify cluster app secret operation typically these are written to a http.Request

func NewModifyClusterAppSecretParams

func NewModifyClusterAppSecretParams() *ModifyClusterAppSecretParams

NewModifyClusterAppSecretParams creates a new ModifyClusterAppSecretParams object with the default values initialized.

func NewModifyClusterAppSecretParamsWithContext

func NewModifyClusterAppSecretParamsWithContext(ctx context.Context) *ModifyClusterAppSecretParams

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

func NewModifyClusterAppSecretParamsWithHTTPClient

func NewModifyClusterAppSecretParamsWithHTTPClient(client *http.Client) *ModifyClusterAppSecretParams

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

func NewModifyClusterAppSecretParamsWithTimeout

func NewModifyClusterAppSecretParamsWithTimeout(timeout time.Duration) *ModifyClusterAppSecretParams

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

func (*ModifyClusterAppSecretParams) SetAppName

func (o *ModifyClusterAppSecretParams) SetAppName(appName string)

SetAppName adds the appName to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) SetBody

SetBody adds the body to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) SetClusterID

func (o *ModifyClusterAppSecretParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) SetContext

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

SetContext adds the context to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) SetTimeout

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

SetTimeout adds the timeout to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) SetXGiantSwarmActivity

func (o *ModifyClusterAppSecretParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) SetXGiantSwarmCmdLine

func (o *ModifyClusterAppSecretParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) SetXRequestID

func (o *ModifyClusterAppSecretParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WithAppName

WithAppName adds the appName to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WithBody

WithBody adds the body to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WithClusterID

WithClusterID adds the clusterID to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WithContext

WithContext adds the context to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WithTimeout

WithTimeout adds the timeout to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WithXGiantSwarmActivity

func (o *ModifyClusterAppSecretParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *ModifyClusterAppSecretParams

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WithXGiantSwarmCmdLine

func (o *ModifyClusterAppSecretParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *ModifyClusterAppSecretParams

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WithXRequestID

func (o *ModifyClusterAppSecretParams) WithXRequestID(xRequestID *string) *ModifyClusterAppSecretParams

WithXRequestID adds the xRequestID to the modify cluster app secret params

func (*ModifyClusterAppSecretParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ModifyClusterAppSecretReader

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

ModifyClusterAppSecretReader is a Reader for the ModifyClusterAppSecret structure.

func (*ModifyClusterAppSecretReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ModifyClusterAppSecretUnauthorized

type ModifyClusterAppSecretUnauthorized struct {
	Payload *models.V4GenericResponse
}

ModifyClusterAppSecretUnauthorized handles this case with default header values.

Permission denied

func NewModifyClusterAppSecretUnauthorized

func NewModifyClusterAppSecretUnauthorized() *ModifyClusterAppSecretUnauthorized

NewModifyClusterAppSecretUnauthorized creates a ModifyClusterAppSecretUnauthorized with default headers values

func (*ModifyClusterAppSecretUnauthorized) Error

Jump to

Keyboard shortcuts

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