apps

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 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 apps API

func New

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

New creates a new apps API client.

func (*Client) CreateClusterApp

func (a *Client) CreateClusterApp(params *CreateClusterAppParams, authInfo runtime.ClientAuthInfoWriter) (*CreateClusterAppOK, error)

CreateClusterApp installs an app

Install an app on a tenant cluster by posting to this endpoint.

The spec field represents the app we'll be installing, and so spec.name refers to the name of the chart that installs this app in the catalog.

The response you get on a succesful create includes the status of the app. However since the App is still initialising and this is an asynchronous operation, it is likely that the fields in this status object will be all empty values.

To check on the status of your app, perform a GET to /v4/clusters/{cluster_id}/apps/, and check the status field of the app.

### Example PUT request ```json

{
  "spec": {
    "catalog": "sample-catalog",
    "name": "prometheus-chart",
    "namespace": "prometheus",
    "version": "0.2.0",
  }
}

```

### About the user_config field in the response This field is not editable by you, but is set automatically by the API if a configmap named `{app_name}-user-values` exists in the tenant cluster namespace on the control plane.

The `/v4/clusters/{cluster_id}/apps/{app_name}/config/` endpoints allows you to create such a configmap using this API.

It is recommended to create your config before creating your app. This will result in a faster deploy.

However, you can create your config after creating the app if you wish, this API will take care of setting the `user_config` field of the app correctly for you.

### Why can't I just set the `user_config` value myself? It simplifies usage while also being a security measure.

Furthermore it is also a security measure and ensures that users of this API can't access arbitrary configmaps of the control plane.

This API will only allow you to edit or access configmaps that adhere to a strict naming convention.

func (*Client) DeleteClusterApp

func (a *Client) DeleteClusterApp(params *DeleteClusterAppParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClusterAppOK, error)

DeleteClusterApp deletes an app

This operation allows a user to delete an app.

func (*Client) GetAppCatalogs

func (a *Client) GetAppCatalogs(params *GetAppCatalogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAppCatalogsOK, error)

GetAppCatalogs gets a list of app catalogs configured on your installation

Returns an array of app catalog objects, which contains further metadata, including a URL to fetch the full index of each catalog.

#### About the Labels

  • `application.giantswarm.io/catalog-type` Describes the type of catalog.

  • `managed` - Apps in this catalog are managed by Giant Swarm.

  • `incubator` - Apps in this catalog are a work in progress. They're made with your Giant Swarm cluster in mind though, so they should work. Feedback is appreciated on these apps.

  • `test` - Apps in this catalog will soon graduate to incubator status, you most likely will not see any `test` catalogs on your installations.

  • `community` - Apps in this catalog are provided by the kubernetes community. They will most likely not work without making some changes to the security settings of your cluster.

    App Catalogs can also be labeled as `internal`, however these catalogs contain apps that run on our control planes. These `internal` app catalogs will be filtered out and never shown when calling this endpoint.

    For more details on app catalogs visit: https://docs.giantswarm.io/basics/app-catalog/

### Example ```json

[
  {
    "metadata": {
      "name": "sample-catalog",
      "labels": {
        "application.giantswarm.io/catalog-type": "test",
        "app-operator.giantswarm.io/version": "1.0.0",
      },
    },

    "spec": {
      "description": "Giant Swarm's Sample Catalog with a few apps to test things out.",
      "logoURL": "https://s.giantswarm.io/app-catalog/1/images/sample-catalog.png",

      "storage": {
        "URL": "https://giantswarm.github.com/sample-catalog/",
        "type": "helm"
      },
      "title": "Sample Catalog"
    }
  }
]

```

func (*Client) GetClusterApps

func (a *Client) GetClusterApps(params *GetClusterAppsParams, authInfo runtime.ClientAuthInfoWriter) (*GetClusterAppsOK, error)

GetClusterApps gets cluster apps

Returns an array of apps installed on a given cluster.

### Example ```json

[
  {
    "metadata": {
      "name": "my-awesome-prometheus",
    },

    "spec": {
      "catalog": "sample-catalog"
      "name": "prometheus-chart",
      "namespace": "giantswarm",
      "version": "0.2.0",
      "user_config": {
        "configmap": {
          "name": "prometheus-user-values",
          "namespace": "123ab"
        }
      }
    },

    "status": {
      "app_version": "1.0.0",
      "release": {
        "last_deployed": "2019-04-08T12:34:00Z",
        "status": "DEPLOYED"
      },
      "version": "0.2.0",
    }
  }
]

```

func (*Client) ModifyClusterApp

func (a *Client) ModifyClusterApp(params *ModifyClusterAppParams, authInfo runtime.ClientAuthInfoWriter) (*ModifyClusterAppOK, error)

ModifyClusterApp modifies an app

This operation allows you to modify an existing app.

The following attributes can be modified:

- `version`: Changing this field lets you upgrade or downgrade an app.

`catalog`, `name`, `namespace`, and `user_config` are not editable. If you need to move or rename an app, you should instead delete the app and make it again.

The request body must conform with the [JSON Patch Merge (RFC 7386)](https://tools.ietf.org/html/rfc7386) standard. Requests have to be sent with the `Content-Type: application/merge-patch+json` header.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateClusterAppBadRequest

type CreateClusterAppBadRequest struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppBadRequest handles this case with default header values.

Invalid input

func NewCreateClusterAppBadRequest

func NewCreateClusterAppBadRequest() *CreateClusterAppBadRequest

NewCreateClusterAppBadRequest creates a CreateClusterAppBadRequest with default headers values

func (*CreateClusterAppBadRequest) Error

type CreateClusterAppConflict

type CreateClusterAppConflict struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppConflict handles this case with default header values.

App already exists

func NewCreateClusterAppConflict

func NewCreateClusterAppConflict() *CreateClusterAppConflict

NewCreateClusterAppConflict creates a CreateClusterAppConflict with default headers values

func (*CreateClusterAppConflict) Error

func (o *CreateClusterAppConflict) Error() string

type CreateClusterAppDefault

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

CreateClusterAppDefault handles this case with default header values.

error

func NewCreateClusterAppDefault

func NewCreateClusterAppDefault(code int) *CreateClusterAppDefault

NewCreateClusterAppDefault creates a CreateClusterAppDefault with default headers values

func (*CreateClusterAppDefault) Code

func (o *CreateClusterAppDefault) Code() int

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

func (*CreateClusterAppDefault) Error

func (o *CreateClusterAppDefault) Error() string

type CreateClusterAppOK

type CreateClusterAppOK struct {
	Payload *models.V4App
}

CreateClusterAppOK handles this case with default header values.

Create cluster app

func NewCreateClusterAppOK

func NewCreateClusterAppOK() *CreateClusterAppOK

NewCreateClusterAppOK creates a CreateClusterAppOK with default headers values

func (*CreateClusterAppOK) Error

func (o *CreateClusterAppOK) Error() string

type CreateClusterAppParams

type CreateClusterAppParams struct {

	/*Authorization
	  As described in the [authentication](#section/Authentication) section


	*/
	Authorization string
	/*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.V4CreateAppRequest
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

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

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

func NewCreateClusterAppParams

func NewCreateClusterAppParams() *CreateClusterAppParams

NewCreateClusterAppParams creates a new CreateClusterAppParams object with the default values initialized.

func NewCreateClusterAppParamsWithContext

func NewCreateClusterAppParamsWithContext(ctx context.Context) *CreateClusterAppParams

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

func NewCreateClusterAppParamsWithHTTPClient

func NewCreateClusterAppParamsWithHTTPClient(client *http.Client) *CreateClusterAppParams

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

func NewCreateClusterAppParamsWithTimeout

func NewCreateClusterAppParamsWithTimeout(timeout time.Duration) *CreateClusterAppParams

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

func (*CreateClusterAppParams) SetAppName

func (o *CreateClusterAppParams) SetAppName(appName string)

SetAppName adds the appName to the create cluster app params

func (*CreateClusterAppParams) SetAuthorization

func (o *CreateClusterAppParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the create cluster app params

func (*CreateClusterAppParams) SetBody

SetBody adds the body to the create cluster app params

func (*CreateClusterAppParams) SetClusterID

func (o *CreateClusterAppParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the create cluster app params

func (*CreateClusterAppParams) SetContext

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

SetContext adds the context to the create cluster app params

func (*CreateClusterAppParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create cluster app params

func (*CreateClusterAppParams) SetTimeout

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

SetTimeout adds the timeout to the create cluster app params

func (*CreateClusterAppParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the create cluster app params

func (*CreateClusterAppParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the create cluster app params

func (*CreateClusterAppParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the create cluster app params

func (*CreateClusterAppParams) WithAppName

func (o *CreateClusterAppParams) WithAppName(appName string) *CreateClusterAppParams

WithAppName adds the appName to the create cluster app params

func (*CreateClusterAppParams) WithAuthorization

func (o *CreateClusterAppParams) WithAuthorization(authorization string) *CreateClusterAppParams

WithAuthorization adds the authorization to the create cluster app params

func (*CreateClusterAppParams) WithBody

WithBody adds the body to the create cluster app params

func (*CreateClusterAppParams) WithClusterID

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

WithClusterID adds the clusterID to the create cluster app params

func (*CreateClusterAppParams) WithContext

WithContext adds the context to the create cluster app params

func (*CreateClusterAppParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create cluster app params

func (*CreateClusterAppParams) WithTimeout

WithTimeout adds the timeout to the create cluster app params

func (*CreateClusterAppParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the create cluster app params

func (*CreateClusterAppParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the create cluster app params

func (*CreateClusterAppParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the create cluster app params

func (*CreateClusterAppParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateClusterAppReader

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

CreateClusterAppReader is a Reader for the CreateClusterApp structure.

func (*CreateClusterAppReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateClusterAppUnauthorized

type CreateClusterAppUnauthorized struct {
	Payload *models.V4GenericResponse
}

CreateClusterAppUnauthorized handles this case with default header values.

Permission denied

func NewCreateClusterAppUnauthorized

func NewCreateClusterAppUnauthorized() *CreateClusterAppUnauthorized

NewCreateClusterAppUnauthorized creates a CreateClusterAppUnauthorized with default headers values

func (*CreateClusterAppUnauthorized) Error

type DeleteClusterAppDefault

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

DeleteClusterAppDefault handles this case with default header values.

Error

func NewDeleteClusterAppDefault

func NewDeleteClusterAppDefault(code int) *DeleteClusterAppDefault

NewDeleteClusterAppDefault creates a DeleteClusterAppDefault with default headers values

func (*DeleteClusterAppDefault) Code

func (o *DeleteClusterAppDefault) Code() int

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

func (*DeleteClusterAppDefault) Error

func (o *DeleteClusterAppDefault) Error() string

type DeleteClusterAppNotFound

type DeleteClusterAppNotFound struct {
	Payload *models.V4GenericResponse
}

DeleteClusterAppNotFound handles this case with default header values.

App not found

func NewDeleteClusterAppNotFound

func NewDeleteClusterAppNotFound() *DeleteClusterAppNotFound

NewDeleteClusterAppNotFound creates a DeleteClusterAppNotFound with default headers values

func (*DeleteClusterAppNotFound) Error

func (o *DeleteClusterAppNotFound) Error() string

type DeleteClusterAppOK

type DeleteClusterAppOK struct {
	Payload *models.V4GenericResponse
}

DeleteClusterAppOK handles this case with default header values.

App deleted

func NewDeleteClusterAppOK

func NewDeleteClusterAppOK() *DeleteClusterAppOK

NewDeleteClusterAppOK creates a DeleteClusterAppOK with default headers values

func (*DeleteClusterAppOK) Error

func (o *DeleteClusterAppOK) Error() string

type DeleteClusterAppParams

type DeleteClusterAppParams struct {

	/*Authorization
	  As described in the [authentication](#section/Authentication) section


	*/
	Authorization string
	/*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
}

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

func NewDeleteClusterAppParams

func NewDeleteClusterAppParams() *DeleteClusterAppParams

NewDeleteClusterAppParams creates a new DeleteClusterAppParams object with the default values initialized.

func NewDeleteClusterAppParamsWithContext

func NewDeleteClusterAppParamsWithContext(ctx context.Context) *DeleteClusterAppParams

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

func NewDeleteClusterAppParamsWithHTTPClient

func NewDeleteClusterAppParamsWithHTTPClient(client *http.Client) *DeleteClusterAppParams

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

func NewDeleteClusterAppParamsWithTimeout

func NewDeleteClusterAppParamsWithTimeout(timeout time.Duration) *DeleteClusterAppParams

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

func (*DeleteClusterAppParams) SetAppName

func (o *DeleteClusterAppParams) SetAppName(appName string)

SetAppName adds the appName to the delete cluster app params

func (*DeleteClusterAppParams) SetAuthorization

func (o *DeleteClusterAppParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the delete cluster app params

func (*DeleteClusterAppParams) SetClusterID

func (o *DeleteClusterAppParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete cluster app params

func (*DeleteClusterAppParams) SetContext

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

SetContext adds the context to the delete cluster app params

func (*DeleteClusterAppParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete cluster app params

func (*DeleteClusterAppParams) SetTimeout

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

SetTimeout adds the timeout to the delete cluster app params

func (*DeleteClusterAppParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the delete cluster app params

func (*DeleteClusterAppParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete cluster app params

func (*DeleteClusterAppParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the delete cluster app params

func (*DeleteClusterAppParams) WithAppName

func (o *DeleteClusterAppParams) WithAppName(appName string) *DeleteClusterAppParams

WithAppName adds the appName to the delete cluster app params

func (*DeleteClusterAppParams) WithAuthorization

func (o *DeleteClusterAppParams) WithAuthorization(authorization string) *DeleteClusterAppParams

WithAuthorization adds the authorization to the delete cluster app params

func (*DeleteClusterAppParams) WithClusterID

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

WithClusterID adds the clusterID to the delete cluster app params

func (*DeleteClusterAppParams) WithContext

WithContext adds the context to the delete cluster app params

func (*DeleteClusterAppParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete cluster app params

func (*DeleteClusterAppParams) WithTimeout

WithTimeout adds the timeout to the delete cluster app params

func (*DeleteClusterAppParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the delete cluster app params

func (*DeleteClusterAppParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the delete cluster app params

func (*DeleteClusterAppParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the delete cluster app params

func (*DeleteClusterAppParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteClusterAppReader

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

DeleteClusterAppReader is a Reader for the DeleteClusterApp structure.

func (*DeleteClusterAppReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteClusterAppUnauthorized

type DeleteClusterAppUnauthorized struct {
	Payload *models.V4GenericResponse
}

DeleteClusterAppUnauthorized handles this case with default header values.

Permission denied

func NewDeleteClusterAppUnauthorized

func NewDeleteClusterAppUnauthorized() *DeleteClusterAppUnauthorized

NewDeleteClusterAppUnauthorized creates a DeleteClusterAppUnauthorized with default headers values

func (*DeleteClusterAppUnauthorized) Error

type GetAppCatalogsDefault

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

GetAppCatalogsDefault handles this case with default header values.

Error

func NewGetAppCatalogsDefault

func NewGetAppCatalogsDefault(code int) *GetAppCatalogsDefault

NewGetAppCatalogsDefault creates a GetAppCatalogsDefault with default headers values

func (*GetAppCatalogsDefault) Code

func (o *GetAppCatalogsDefault) Code() int

Code gets the status code for the get app catalogs default response

func (*GetAppCatalogsDefault) Error

func (o *GetAppCatalogsDefault) Error() string

type GetAppCatalogsOK

type GetAppCatalogsOK struct {
	Payload models.V4AppCatalogsResponse
}

GetAppCatalogsOK handles this case with default header values.

Information

func NewGetAppCatalogsOK

func NewGetAppCatalogsOK() *GetAppCatalogsOK

NewGetAppCatalogsOK creates a GetAppCatalogsOK with default headers values

func (*GetAppCatalogsOK) Error

func (o *GetAppCatalogsOK) Error() string

type GetAppCatalogsParams

type GetAppCatalogsParams struct {

	/*Authorization
	  As described in the [authentication](#section/Authentication) section


	*/
	Authorization string
	/*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

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

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

func NewGetAppCatalogsParams

func NewGetAppCatalogsParams() *GetAppCatalogsParams

NewGetAppCatalogsParams creates a new GetAppCatalogsParams object with the default values initialized.

func NewGetAppCatalogsParamsWithContext

func NewGetAppCatalogsParamsWithContext(ctx context.Context) *GetAppCatalogsParams

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

func NewGetAppCatalogsParamsWithHTTPClient

func NewGetAppCatalogsParamsWithHTTPClient(client *http.Client) *GetAppCatalogsParams

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

func NewGetAppCatalogsParamsWithTimeout

func NewGetAppCatalogsParamsWithTimeout(timeout time.Duration) *GetAppCatalogsParams

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

func (*GetAppCatalogsParams) SetAuthorization

func (o *GetAppCatalogsParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get app catalogs params

func (*GetAppCatalogsParams) SetContext

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

SetContext adds the context to the get app catalogs params

func (*GetAppCatalogsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get app catalogs params

func (*GetAppCatalogsParams) SetTimeout

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

SetTimeout adds the timeout to the get app catalogs params

func (*GetAppCatalogsParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get app catalogs params

func (*GetAppCatalogsParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get app catalogs params

func (*GetAppCatalogsParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get app catalogs params

func (*GetAppCatalogsParams) WithAuthorization

func (o *GetAppCatalogsParams) WithAuthorization(authorization string) *GetAppCatalogsParams

WithAuthorization adds the authorization to the get app catalogs params

func (*GetAppCatalogsParams) WithContext

WithContext adds the context to the get app catalogs params

func (*GetAppCatalogsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get app catalogs params

func (*GetAppCatalogsParams) WithTimeout

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

WithTimeout adds the timeout to the get app catalogs params

func (*GetAppCatalogsParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get app catalogs params

func (*GetAppCatalogsParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get app catalogs params

func (*GetAppCatalogsParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get app catalogs params

func (*GetAppCatalogsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAppCatalogsReader

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

GetAppCatalogsReader is a Reader for the GetAppCatalogs structure.

func (*GetAppCatalogsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAppCatalogsUnauthorized

type GetAppCatalogsUnauthorized struct {
	Payload *models.V4GenericResponse
}

GetAppCatalogsUnauthorized handles this case with default header values.

Permission denied

func NewGetAppCatalogsUnauthorized

func NewGetAppCatalogsUnauthorized() *GetAppCatalogsUnauthorized

NewGetAppCatalogsUnauthorized creates a GetAppCatalogsUnauthorized with default headers values

func (*GetAppCatalogsUnauthorized) Error

type GetClusterAppsDefault

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

GetClusterAppsDefault handles this case with default header values.

error

func NewGetClusterAppsDefault

func NewGetClusterAppsDefault(code int) *GetClusterAppsDefault

NewGetClusterAppsDefault creates a GetClusterAppsDefault with default headers values

func (*GetClusterAppsDefault) Code

func (o *GetClusterAppsDefault) Code() int

Code gets the status code for the get cluster apps default response

func (*GetClusterAppsDefault) Error

func (o *GetClusterAppsDefault) Error() string

type GetClusterAppsOK

type GetClusterAppsOK struct {
	Payload models.V4GetClusterAppsResponse
}

GetClusterAppsOK handles this case with default header values.

Cluster apps

func NewGetClusterAppsOK

func NewGetClusterAppsOK() *GetClusterAppsOK

NewGetClusterAppsOK creates a GetClusterAppsOK with default headers values

func (*GetClusterAppsOK) Error

func (o *GetClusterAppsOK) Error() string

type GetClusterAppsParams

type GetClusterAppsParams struct {

	/*Authorization
	  As described in the [authentication](#section/Authentication) section


	*/
	Authorization string
	/*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
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

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

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

func NewGetClusterAppsParams

func NewGetClusterAppsParams() *GetClusterAppsParams

NewGetClusterAppsParams creates a new GetClusterAppsParams object with the default values initialized.

func NewGetClusterAppsParamsWithContext

func NewGetClusterAppsParamsWithContext(ctx context.Context) *GetClusterAppsParams

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

func NewGetClusterAppsParamsWithHTTPClient

func NewGetClusterAppsParamsWithHTTPClient(client *http.Client) *GetClusterAppsParams

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

func NewGetClusterAppsParamsWithTimeout

func NewGetClusterAppsParamsWithTimeout(timeout time.Duration) *GetClusterAppsParams

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

func (*GetClusterAppsParams) SetAuthorization

func (o *GetClusterAppsParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get cluster apps params

func (*GetClusterAppsParams) SetClusterID

func (o *GetClusterAppsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get cluster apps params

func (*GetClusterAppsParams) SetContext

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

SetContext adds the context to the get cluster apps params

func (*GetClusterAppsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get cluster apps params

func (*GetClusterAppsParams) SetTimeout

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

SetTimeout adds the timeout to the get cluster apps params

func (*GetClusterAppsParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster apps params

func (*GetClusterAppsParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster apps params

func (*GetClusterAppsParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get cluster apps params

func (*GetClusterAppsParams) WithAuthorization

func (o *GetClusterAppsParams) WithAuthorization(authorization string) *GetClusterAppsParams

WithAuthorization adds the authorization to the get cluster apps params

func (*GetClusterAppsParams) WithClusterID

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

WithClusterID adds the clusterID to the get cluster apps params

func (*GetClusterAppsParams) WithContext

WithContext adds the context to the get cluster apps params

func (*GetClusterAppsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get cluster apps params

func (*GetClusterAppsParams) WithTimeout

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

WithTimeout adds the timeout to the get cluster apps params

func (*GetClusterAppsParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get cluster apps params

func (*GetClusterAppsParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get cluster apps params

func (*GetClusterAppsParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get cluster apps params

func (*GetClusterAppsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetClusterAppsReader

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

GetClusterAppsReader is a Reader for the GetClusterApps structure.

func (*GetClusterAppsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClusterAppsUnauthorized

type GetClusterAppsUnauthorized struct {
	Payload *models.V4GenericResponse
}

GetClusterAppsUnauthorized handles this case with default header values.

Permission denied

func NewGetClusterAppsUnauthorized

func NewGetClusterAppsUnauthorized() *GetClusterAppsUnauthorized

NewGetClusterAppsUnauthorized creates a GetClusterAppsUnauthorized with default headers values

func (*GetClusterAppsUnauthorized) Error

type ModifyClusterAppBadRequest

type ModifyClusterAppBadRequest struct {
	Payload *models.V4GenericResponse
}

ModifyClusterAppBadRequest handles this case with default header values.

Invalid input

func NewModifyClusterAppBadRequest

func NewModifyClusterAppBadRequest() *ModifyClusterAppBadRequest

NewModifyClusterAppBadRequest creates a ModifyClusterAppBadRequest with default headers values

func (*ModifyClusterAppBadRequest) Error

type ModifyClusterAppDefault

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

ModifyClusterAppDefault handles this case with default header values.

error

func NewModifyClusterAppDefault

func NewModifyClusterAppDefault(code int) *ModifyClusterAppDefault

NewModifyClusterAppDefault creates a ModifyClusterAppDefault with default headers values

func (*ModifyClusterAppDefault) Code

func (o *ModifyClusterAppDefault) Code() int

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

func (*ModifyClusterAppDefault) Error

func (o *ModifyClusterAppDefault) Error() string

type ModifyClusterAppNotFound

type ModifyClusterAppNotFound struct {
	Payload *models.V4GenericResponse
}

ModifyClusterAppNotFound handles this case with default header values.

App not found

func NewModifyClusterAppNotFound

func NewModifyClusterAppNotFound() *ModifyClusterAppNotFound

NewModifyClusterAppNotFound creates a ModifyClusterAppNotFound with default headers values

func (*ModifyClusterAppNotFound) Error

func (o *ModifyClusterAppNotFound) Error() string

type ModifyClusterAppOK

type ModifyClusterAppOK struct {
	Payload *models.V4App
}

ModifyClusterAppOK handles this case with default header values.

App modified

func NewModifyClusterAppOK

func NewModifyClusterAppOK() *ModifyClusterAppOK

NewModifyClusterAppOK creates a ModifyClusterAppOK with default headers values

func (*ModifyClusterAppOK) Error

func (o *ModifyClusterAppOK) Error() string

type ModifyClusterAppParams

type ModifyClusterAppParams struct {

	/*Authorization
	  As described in the [authentication](#section/Authentication) section


	*/
	Authorization string
	/*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.V4ModifyAppRequest
	/*ClusterID
	  Cluster ID

	*/
	ClusterID string

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

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

func NewModifyClusterAppParams

func NewModifyClusterAppParams() *ModifyClusterAppParams

NewModifyClusterAppParams creates a new ModifyClusterAppParams object with the default values initialized.

func NewModifyClusterAppParamsWithContext

func NewModifyClusterAppParamsWithContext(ctx context.Context) *ModifyClusterAppParams

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

func NewModifyClusterAppParamsWithHTTPClient

func NewModifyClusterAppParamsWithHTTPClient(client *http.Client) *ModifyClusterAppParams

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

func NewModifyClusterAppParamsWithTimeout

func NewModifyClusterAppParamsWithTimeout(timeout time.Duration) *ModifyClusterAppParams

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

func (*ModifyClusterAppParams) SetAppName

func (o *ModifyClusterAppParams) SetAppName(appName string)

SetAppName adds the appName to the modify cluster app params

func (*ModifyClusterAppParams) SetAuthorization

func (o *ModifyClusterAppParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the modify cluster app params

func (*ModifyClusterAppParams) SetBody

SetBody adds the body to the modify cluster app params

func (*ModifyClusterAppParams) SetClusterID

func (o *ModifyClusterAppParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the modify cluster app params

func (*ModifyClusterAppParams) SetContext

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

SetContext adds the context to the modify cluster app params

func (*ModifyClusterAppParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the modify cluster app params

func (*ModifyClusterAppParams) SetTimeout

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

SetTimeout adds the timeout to the modify cluster app params

func (*ModifyClusterAppParams) SetXGiantSwarmActivity

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

SetXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster app params

func (*ModifyClusterAppParams) SetXGiantSwarmCmdLine

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

SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster app params

func (*ModifyClusterAppParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the modify cluster app params

func (*ModifyClusterAppParams) WithAppName

func (o *ModifyClusterAppParams) WithAppName(appName string) *ModifyClusterAppParams

WithAppName adds the appName to the modify cluster app params

func (*ModifyClusterAppParams) WithAuthorization

func (o *ModifyClusterAppParams) WithAuthorization(authorization string) *ModifyClusterAppParams

WithAuthorization adds the authorization to the modify cluster app params

func (*ModifyClusterAppParams) WithBody

WithBody adds the body to the modify cluster app params

func (*ModifyClusterAppParams) WithClusterID

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

WithClusterID adds the clusterID to the modify cluster app params

func (*ModifyClusterAppParams) WithContext

WithContext adds the context to the modify cluster app params

func (*ModifyClusterAppParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the modify cluster app params

func (*ModifyClusterAppParams) WithTimeout

WithTimeout adds the timeout to the modify cluster app params

func (*ModifyClusterAppParams) WithXGiantSwarmActivity

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

WithXGiantSwarmActivity adds the xGiantSwarmActivity to the modify cluster app params

func (*ModifyClusterAppParams) WithXGiantSwarmCmdLine

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

WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the modify cluster app params

func (*ModifyClusterAppParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the modify cluster app params

func (*ModifyClusterAppParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ModifyClusterAppReader

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

ModifyClusterAppReader is a Reader for the ModifyClusterApp structure.

func (*ModifyClusterAppReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ModifyClusterAppUnauthorized

type ModifyClusterAppUnauthorized struct {
	Payload *models.V4GenericResponse
}

ModifyClusterAppUnauthorized handles this case with default header values.

Permission denied

func NewModifyClusterAppUnauthorized

func NewModifyClusterAppUnauthorized() *ModifyClusterAppUnauthorized

NewModifyClusterAppUnauthorized creates a ModifyClusterAppUnauthorized with default headers values

func (*ModifyClusterAppUnauthorized) Error

Jump to

Keyboard shortcuts

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