apps

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2016 License: Apache-2.0 Imports: 8 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) CreateApp

func (a *Client) CreateApp(params *CreateAppParams, authInfo runtime.ClientAuthInfoWriter) (*CreateAppCreated, error)

CreateApp creates an app

Create an app

func (*Client) GetAppDetails

func (a *Client) GetAppDetails(params *GetAppDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAppDetailsOK, error)

GetAppDetails gets app details

Get app details

func (*Client) GetApps

func (a *Client) GetApps(params *GetAppsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAppsOK, error)

GetApps gets team apps

Get team apps

func (*Client) PartialUpdateApp

func (a *Client) PartialUpdateApp(params *PartialUpdateAppParams, authInfo runtime.ClientAuthInfoWriter) (*PartialUpdateAppOK, error)

PartialUpdateApp partials update app

Update some app properties, for now, only accept envvars

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateApp

func (a *Client) UpdateApp(params *UpdateAppParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateAppOK, error)

UpdateApp updates app

Update app properties, such as number of replicas and other things.

type CreateAppCreated

type CreateAppCreated struct {
	Payload *models.App
}

CreateAppCreated handles this case with default header values.

Newly created app

func NewCreateAppCreated

func NewCreateAppCreated() *CreateAppCreated

NewCreateAppCreated creates a CreateAppCreated with default headers values

func (*CreateAppCreated) Error

func (o *CreateAppCreated) Error() string

type CreateAppDefault

type CreateAppDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

CreateAppDefault handles this case with default header values.

Error

func NewCreateAppDefault

func NewCreateAppDefault(code int) *CreateAppDefault

NewCreateAppDefault creates a CreateAppDefault with default headers values

func (*CreateAppDefault) Code

func (o *CreateAppDefault) Code() int

Code gets the status code for the create app default response

func (*CreateAppDefault) Error

func (o *CreateAppDefault) Error() string

type CreateAppForbidden

type CreateAppForbidden struct {
	Payload *models.Unauthorized
}

CreateAppForbidden handles this case with default header values.

User does not have the credentials to access this resource

func NewCreateAppForbidden

func NewCreateAppForbidden() *CreateAppForbidden

NewCreateAppForbidden creates a CreateAppForbidden with default headers values

func (*CreateAppForbidden) Error

func (o *CreateAppForbidden) Error() string

type CreateAppParams

type CreateAppParams struct {

	/*Body*/
	Body *models.App
	/*TeamID
	  Team ID

	*/
	TeamID int64
}

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

func NewCreateAppParams

func NewCreateAppParams() *CreateAppParams

NewCreateAppParams creates a new CreateAppParams object with the default values initialized.

func (*CreateAppParams) WithBody

func (o *CreateAppParams) WithBody(Body *models.App) *CreateAppParams

WithBody adds the body to the create app params

func (*CreateAppParams) WithTeamID

func (o *CreateAppParams) WithTeamID(TeamID int64) *CreateAppParams

WithTeamID adds the teamId to the create app params

func (*CreateAppParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateAppReader

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

CreateAppReader is a Reader for the CreateApp structure.

func (*CreateAppReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type CreateAppUnauthorized

type CreateAppUnauthorized struct {
	Payload *models.Unauthorized
}

CreateAppUnauthorized handles this case with default header values.

User not authorized

func NewCreateAppUnauthorized

func NewCreateAppUnauthorized() *CreateAppUnauthorized

NewCreateAppUnauthorized creates a CreateAppUnauthorized with default headers values

func (*CreateAppUnauthorized) Error

func (o *CreateAppUnauthorized) Error() string

type GetAppDetailsDefault

type GetAppDetailsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetAppDetailsDefault handles this case with default header values.

Error

func NewGetAppDetailsDefault

func NewGetAppDetailsDefault(code int) *GetAppDetailsDefault

NewGetAppDetailsDefault creates a GetAppDetailsDefault with default headers values

func (*GetAppDetailsDefault) Code

func (o *GetAppDetailsDefault) Code() int

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

func (*GetAppDetailsDefault) Error

func (o *GetAppDetailsDefault) Error() string

type GetAppDetailsForbidden

type GetAppDetailsForbidden struct {
	Payload *models.Unauthorized
}

GetAppDetailsForbidden handles this case with default header values.

User does not have the credentials to access this resource

func NewGetAppDetailsForbidden

func NewGetAppDetailsForbidden() *GetAppDetailsForbidden

NewGetAppDetailsForbidden creates a GetAppDetailsForbidden with default headers values

func (*GetAppDetailsForbidden) Error

func (o *GetAppDetailsForbidden) Error() string

type GetAppDetailsOK

type GetAppDetailsOK struct {
	Payload *models.App
}

GetAppDetailsOK handles this case with default header values.

App details

func NewGetAppDetailsOK

func NewGetAppDetailsOK() *GetAppDetailsOK

NewGetAppDetailsOK creates a GetAppDetailsOK with default headers values

func (*GetAppDetailsOK) Error

func (o *GetAppDetailsOK) Error() string

type GetAppDetailsParams

type GetAppDetailsParams struct {

	/*AppID
	  App ID

	*/
	AppID int64
	/*TeamID
	  Team ID

	*/
	TeamID int64
}

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

func NewGetAppDetailsParams

func NewGetAppDetailsParams() *GetAppDetailsParams

NewGetAppDetailsParams creates a new GetAppDetailsParams object with the default values initialized.

func (*GetAppDetailsParams) WithAppID

func (o *GetAppDetailsParams) WithAppID(AppID int64) *GetAppDetailsParams

WithAppID adds the appId to the get app details params

func (*GetAppDetailsParams) WithTeamID

func (o *GetAppDetailsParams) WithTeamID(TeamID int64) *GetAppDetailsParams

WithTeamID adds the teamId to the get app details params

func (*GetAppDetailsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAppDetailsReader

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

GetAppDetailsReader is a Reader for the GetAppDetails structure.

func (*GetAppDetailsReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetAppDetailsUnauthorized

type GetAppDetailsUnauthorized struct {
	Payload *models.Unauthorized
}

GetAppDetailsUnauthorized handles this case with default header values.

User not authorized

func NewGetAppDetailsUnauthorized

func NewGetAppDetailsUnauthorized() *GetAppDetailsUnauthorized

NewGetAppDetailsUnauthorized creates a GetAppDetailsUnauthorized with default headers values

func (*GetAppDetailsUnauthorized) Error

func (o *GetAppDetailsUnauthorized) Error() string

type GetAppsDefault

type GetAppsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetAppsDefault handles this case with default header values.

Error

func NewGetAppsDefault

func NewGetAppsDefault(code int) *GetAppsDefault

NewGetAppsDefault creates a GetAppsDefault with default headers values

func (*GetAppsDefault) Code

func (o *GetAppsDefault) Code() int

Code gets the status code for the get apps default response

func (*GetAppsDefault) Error

func (o *GetAppsDefault) Error() string

type GetAppsForbidden

type GetAppsForbidden struct {
	Payload *models.Unauthorized
}

GetAppsForbidden handles this case with default header values.

User does not have the credentials to access this resource

func NewGetAppsForbidden

func NewGetAppsForbidden() *GetAppsForbidden

NewGetAppsForbidden creates a GetAppsForbidden with default headers values

func (*GetAppsForbidden) Error

func (o *GetAppsForbidden) Error() string

type GetAppsOK

type GetAppsOK struct {
	Payload GetAppsOKBodyBody
}

GetAppsOK handles this case with default header values.

Apps

func NewGetAppsOK

func NewGetAppsOK() *GetAppsOK

NewGetAppsOK creates a GetAppsOK with default headers values

func (*GetAppsOK) Error

func (o *GetAppsOK) Error() string

type GetAppsOKBodyBody

type GetAppsOKBodyBody struct {
	models.Pagination

	/* items

	Required: true
	*/
	Items []*models.App `json:"items"`
}

GetAppsOKBodyBody get apps o k body body

swagger:model GetAppsOKBodyBody

func (*GetAppsOKBodyBody) Validate

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

Validate validates this get apps o k body body

type GetAppsParams

type GetAppsParams struct {

	/*Limit
	  Limit

	*/
	Limit *int64
	/*Since
	  Offset

	*/
	Since *int64
	/*TeamID
	  Team ID

	*/
	TeamID int64
}

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

func NewGetAppsParams

func NewGetAppsParams() *GetAppsParams

NewGetAppsParams creates a new GetAppsParams object with the default values initialized.

func (*GetAppsParams) WithLimit

func (o *GetAppsParams) WithLimit(Limit *int64) *GetAppsParams

WithLimit adds the limit to the get apps params

func (*GetAppsParams) WithSince

func (o *GetAppsParams) WithSince(Since *int64) *GetAppsParams

WithSince adds the since to the get apps params

func (*GetAppsParams) WithTeamID

func (o *GetAppsParams) WithTeamID(TeamID int64) *GetAppsParams

WithTeamID adds the teamId to the get apps params

func (*GetAppsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAppsReader

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

GetAppsReader is a Reader for the GetApps structure.

func (*GetAppsReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetAppsUnauthorized

type GetAppsUnauthorized struct {
	Payload *models.Unauthorized
}

GetAppsUnauthorized handles this case with default header values.

User not authorized

func NewGetAppsUnauthorized

func NewGetAppsUnauthorized() *GetAppsUnauthorized

NewGetAppsUnauthorized creates a GetAppsUnauthorized with default headers values

func (*GetAppsUnauthorized) Error

func (o *GetAppsUnauthorized) Error() string

type PartialUpdateAppDefault

type PartialUpdateAppDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

PartialUpdateAppDefault handles this case with default header values.

Error

func NewPartialUpdateAppDefault

func NewPartialUpdateAppDefault(code int) *PartialUpdateAppDefault

NewPartialUpdateAppDefault creates a PartialUpdateAppDefault with default headers values

func (*PartialUpdateAppDefault) Code

func (o *PartialUpdateAppDefault) Code() int

Code gets the status code for the partial update app default response

func (*PartialUpdateAppDefault) Error

func (o *PartialUpdateAppDefault) Error() string

type PartialUpdateAppForbidden

type PartialUpdateAppForbidden struct {
	Payload *models.Unauthorized
}

PartialUpdateAppForbidden handles this case with default header values.

User does not have the credentials to access this resource

func NewPartialUpdateAppForbidden

func NewPartialUpdateAppForbidden() *PartialUpdateAppForbidden

NewPartialUpdateAppForbidden creates a PartialUpdateAppForbidden with default headers values

func (*PartialUpdateAppForbidden) Error

func (o *PartialUpdateAppForbidden) Error() string

type PartialUpdateAppOK

type PartialUpdateAppOK struct {
	Payload *models.App
}

PartialUpdateAppOK handles this case with default header values.

App

func NewPartialUpdateAppOK

func NewPartialUpdateAppOK() *PartialUpdateAppOK

NewPartialUpdateAppOK creates a PartialUpdateAppOK with default headers values

func (*PartialUpdateAppOK) Error

func (o *PartialUpdateAppOK) Error() string

type PartialUpdateAppParams

type PartialUpdateAppParams struct {

	/*AppID
	  App ID

	*/
	AppID int64
	/*Body*/
	Body []*models.PatchAppRequest
	/*TeamID
	  Team ID

	*/
	TeamID int64
}

PartialUpdateAppParams contains all the parameters to send to the API endpoint for the partial update app operation typically these are written to a http.Request

func NewPartialUpdateAppParams

func NewPartialUpdateAppParams() *PartialUpdateAppParams

NewPartialUpdateAppParams creates a new PartialUpdateAppParams object with the default values initialized.

func (*PartialUpdateAppParams) WithAppID

WithAppID adds the appId to the partial update app params

func (*PartialUpdateAppParams) WithBody

WithBody adds the body to the partial update app params

func (*PartialUpdateAppParams) WithTeamID

func (o *PartialUpdateAppParams) WithTeamID(TeamID int64) *PartialUpdateAppParams

WithTeamID adds the teamId to the partial update app params

func (*PartialUpdateAppParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PartialUpdateAppReader

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

PartialUpdateAppReader is a Reader for the PartialUpdateApp structure.

func (*PartialUpdateAppReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type PartialUpdateAppUnauthorized

type PartialUpdateAppUnauthorized struct {
	Payload *models.Unauthorized
}

PartialUpdateAppUnauthorized handles this case with default header values.

User not authorized

func NewPartialUpdateAppUnauthorized

func NewPartialUpdateAppUnauthorized() *PartialUpdateAppUnauthorized

NewPartialUpdateAppUnauthorized creates a PartialUpdateAppUnauthorized with default headers values

func (*PartialUpdateAppUnauthorized) Error

type UpdateAppDefault

type UpdateAppDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

UpdateAppDefault handles this case with default header values.

Error

func NewUpdateAppDefault

func NewUpdateAppDefault(code int) *UpdateAppDefault

NewUpdateAppDefault creates a UpdateAppDefault with default headers values

func (*UpdateAppDefault) Code

func (o *UpdateAppDefault) Code() int

Code gets the status code for the update app default response

func (*UpdateAppDefault) Error

func (o *UpdateAppDefault) Error() string

type UpdateAppForbidden

type UpdateAppForbidden struct {
	Payload *models.Unauthorized
}

UpdateAppForbidden handles this case with default header values.

User does not have the credentials to access this resource

func NewUpdateAppForbidden

func NewUpdateAppForbidden() *UpdateAppForbidden

NewUpdateAppForbidden creates a UpdateAppForbidden with default headers values

func (*UpdateAppForbidden) Error

func (o *UpdateAppForbidden) Error() string

type UpdateAppOK

type UpdateAppOK struct {
	Payload *models.App
}

UpdateAppOK handles this case with default header values.

App

func NewUpdateAppOK

func NewUpdateAppOK() *UpdateAppOK

NewUpdateAppOK creates a UpdateAppOK with default headers values

func (*UpdateAppOK) Error

func (o *UpdateAppOK) Error() string

type UpdateAppParams

type UpdateAppParams struct {

	/*AppID
	  App ID

	*/
	AppID int64
	/*Body*/
	Body *models.App
	/*TeamID
	  Team ID

	*/
	TeamID int64
}

UpdateAppParams contains all the parameters to send to the API endpoint for the update app operation typically these are written to a http.Request

func NewUpdateAppParams

func NewUpdateAppParams() *UpdateAppParams

NewUpdateAppParams creates a new UpdateAppParams object with the default values initialized.

func (*UpdateAppParams) WithAppID

func (o *UpdateAppParams) WithAppID(AppID int64) *UpdateAppParams

WithAppID adds the appId to the update app params

func (*UpdateAppParams) WithBody

func (o *UpdateAppParams) WithBody(Body *models.App) *UpdateAppParams

WithBody adds the body to the update app params

func (*UpdateAppParams) WithTeamID

func (o *UpdateAppParams) WithTeamID(TeamID int64) *UpdateAppParams

WithTeamID adds the teamId to the update app params

func (*UpdateAppParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateAppReader

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

UpdateAppReader is a Reader for the UpdateApp structure.

func (*UpdateAppReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type UpdateAppUnauthorized

type UpdateAppUnauthorized struct {
	Payload *models.Unauthorized
}

UpdateAppUnauthorized handles this case with default header values.

User not authorized

func NewUpdateAppUnauthorized

func NewUpdateAppUnauthorized() *UpdateAppUnauthorized

NewUpdateAppUnauthorized creates a UpdateAppUnauthorized with default headers values

func (*UpdateAppUnauthorized) Error

func (o *UpdateAppUnauthorized) Error() string

Jump to

Keyboard shortcuts

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