service

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 11 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 service API

func (*Client) DelayInstance

func (a *Client) DelayInstance(params *DelayInstanceParams) (*DelayInstanceOK, *DelayInstanceNoContent, error)

DelayInstance gets the possible reasons for a deployment delay for a marathon service instance

func (*Client) InstanceSetState

func (a *Client) InstanceSetState(params *InstanceSetStateParams) (*InstanceSetStateOK, error)

InstanceSetState changes state of service name instance name

func (*Client) ListInstances

func (a *Client) ListInstances(params *ListInstancesParams) (*ListInstancesOK, error)

ListInstances lists instances of service name

func (*Client) ListServicesForCluster

func (a *Client) ListServicesForCluster(params *ListServicesForClusterParams) (*ListServicesForClusterOK, error)

ListServicesForCluster lists service names and service instance names on the current cluster

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StatusInstance

func (a *Client) StatusInstance(params *StatusInstanceParams) (*StatusInstanceOK, error)

StatusInstance gets status of service name instance name

func (*Client) TaskInstance

func (a *Client) TaskInstance(params *TaskInstanceParams) (*TaskInstanceOK, error)

TaskInstance gets mesos task of service name instance name by task id

func (*Client) TasksInstance

func (a *Client) TasksInstance(params *TasksInstanceParams) (*TasksInstanceOK, error)

TasksInstance gets mesos tasks of service name instance name

type ClientService

type ClientService interface {
	DelayInstance(params *DelayInstanceParams) (*DelayInstanceOK, *DelayInstanceNoContent, error)

	InstanceSetState(params *InstanceSetStateParams) (*InstanceSetStateOK, error)

	ListInstances(params *ListInstancesParams) (*ListInstancesOK, error)

	ListServicesForCluster(params *ListServicesForClusterParams) (*ListServicesForClusterOK, error)

	StatusInstance(params *StatusInstanceParams) (*StatusInstanceOK, error)

	TaskInstance(params *TaskInstanceParams) (*TaskInstanceOK, error)

	TasksInstance(params *TasksInstanceParams) (*TasksInstanceOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new service API client.

type DelayInstanceInternalServerError

type DelayInstanceInternalServerError struct {
}

DelayInstanceInternalServerError handles this case with default header values.

Instance failure

func NewDelayInstanceInternalServerError

func NewDelayInstanceInternalServerError() *DelayInstanceInternalServerError

NewDelayInstanceInternalServerError creates a DelayInstanceInternalServerError with default headers values

func (*DelayInstanceInternalServerError) Error

type DelayInstanceNoContent

type DelayInstanceNoContent struct {
}

DelayInstanceNoContent handles this case with default header values.

Could not find any reasons for a delay

func NewDelayInstanceNoContent

func NewDelayInstanceNoContent() *DelayInstanceNoContent

NewDelayInstanceNoContent creates a DelayInstanceNoContent with default headers values

func (*DelayInstanceNoContent) Error

func (o *DelayInstanceNoContent) Error() string

type DelayInstanceNotFound

type DelayInstanceNotFound struct {
}

DelayInstanceNotFound handles this case with default header values.

Deployment key not found

func NewDelayInstanceNotFound

func NewDelayInstanceNotFound() *DelayInstanceNotFound

NewDelayInstanceNotFound creates a DelayInstanceNotFound with default headers values

func (*DelayInstanceNotFound) Error

func (o *DelayInstanceNotFound) Error() string

type DelayInstanceOK

type DelayInstanceOK struct {
	Payload models.InstanceDelay
}

DelayInstanceOK handles this case with default header values.

The service is delayed for these possible reasons

func NewDelayInstanceOK

func NewDelayInstanceOK() *DelayInstanceOK

NewDelayInstanceOK creates a DelayInstanceOK with default headers values

func (*DelayInstanceOK) Error

func (o *DelayInstanceOK) Error() string

func (*DelayInstanceOK) GetPayload

func (o *DelayInstanceOK) GetPayload() models.InstanceDelay

type DelayInstanceParams

type DelayInstanceParams struct {

	/*Instance
	  Instance name

	*/
	Instance string
	/*Service
	  Service name

	*/
	Service string

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

DelayInstanceParams contains all the parameters to send to the API endpoint for the delay instance operation typically these are written to a http.Request

func NewDelayInstanceParams

func NewDelayInstanceParams() *DelayInstanceParams

NewDelayInstanceParams creates a new DelayInstanceParams object with the default values initialized.

func NewDelayInstanceParamsWithContext

func NewDelayInstanceParamsWithContext(ctx context.Context) *DelayInstanceParams

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

func NewDelayInstanceParamsWithHTTPClient

func NewDelayInstanceParamsWithHTTPClient(client *http.Client) *DelayInstanceParams

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

func NewDelayInstanceParamsWithTimeout

func NewDelayInstanceParamsWithTimeout(timeout time.Duration) *DelayInstanceParams

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

func (*DelayInstanceParams) SetContext

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

SetContext adds the context to the delay instance params

func (*DelayInstanceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delay instance params

func (*DelayInstanceParams) SetInstance

func (o *DelayInstanceParams) SetInstance(instance string)

SetInstance adds the instance to the delay instance params

func (*DelayInstanceParams) SetService

func (o *DelayInstanceParams) SetService(service string)

SetService adds the service to the delay instance params

func (*DelayInstanceParams) SetTimeout

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

SetTimeout adds the timeout to the delay instance params

func (*DelayInstanceParams) WithContext

WithContext adds the context to the delay instance params

func (*DelayInstanceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delay instance params

func (*DelayInstanceParams) WithInstance

func (o *DelayInstanceParams) WithInstance(instance string) *DelayInstanceParams

WithInstance adds the instance to the delay instance params

func (*DelayInstanceParams) WithService

func (o *DelayInstanceParams) WithService(service string) *DelayInstanceParams

WithService adds the service to the delay instance params

func (*DelayInstanceParams) WithTimeout

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

WithTimeout adds the timeout to the delay instance params

func (*DelayInstanceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DelayInstanceReader

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

DelayInstanceReader is a Reader for the DelayInstance structure.

func (*DelayInstanceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InstanceSetStateInternalServerError

type InstanceSetStateInternalServerError struct {
}

InstanceSetStateInternalServerError handles this case with default header values.

Instance failure

func NewInstanceSetStateInternalServerError

func NewInstanceSetStateInternalServerError() *InstanceSetStateInternalServerError

NewInstanceSetStateInternalServerError creates a InstanceSetStateInternalServerError with default headers values

func (*InstanceSetStateInternalServerError) Error

type InstanceSetStateNotFound

type InstanceSetStateNotFound struct {
}

InstanceSetStateNotFound handles this case with default header values.

Deployment key not found

func NewInstanceSetStateNotFound

func NewInstanceSetStateNotFound() *InstanceSetStateNotFound

NewInstanceSetStateNotFound creates a InstanceSetStateNotFound with default headers values

func (*InstanceSetStateNotFound) Error

func (o *InstanceSetStateNotFound) Error() string

type InstanceSetStateOK

type InstanceSetStateOK struct {
}

InstanceSetStateOK handles this case with default header values.

Result of instance state change

func NewInstanceSetStateOK

func NewInstanceSetStateOK() *InstanceSetStateOK

NewInstanceSetStateOK creates a InstanceSetStateOK with default headers values

func (*InstanceSetStateOK) Error

func (o *InstanceSetStateOK) Error() string

type InstanceSetStateParams

type InstanceSetStateParams struct {

	/*DesiredState
	  Desired state

	*/
	DesiredState string
	/*Instance
	  Instance name

	*/
	Instance string
	/*Service
	  Service name

	*/
	Service string

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

InstanceSetStateParams contains all the parameters to send to the API endpoint for the instance set state operation typically these are written to a http.Request

func NewInstanceSetStateParams

func NewInstanceSetStateParams() *InstanceSetStateParams

NewInstanceSetStateParams creates a new InstanceSetStateParams object with the default values initialized.

func NewInstanceSetStateParamsWithContext

func NewInstanceSetStateParamsWithContext(ctx context.Context) *InstanceSetStateParams

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

func NewInstanceSetStateParamsWithHTTPClient

func NewInstanceSetStateParamsWithHTTPClient(client *http.Client) *InstanceSetStateParams

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

func NewInstanceSetStateParamsWithTimeout

func NewInstanceSetStateParamsWithTimeout(timeout time.Duration) *InstanceSetStateParams

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

func (*InstanceSetStateParams) SetContext

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

SetContext adds the context to the instance set state params

func (*InstanceSetStateParams) SetDesiredState

func (o *InstanceSetStateParams) SetDesiredState(desiredState string)

SetDesiredState adds the desiredState to the instance set state params

func (*InstanceSetStateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the instance set state params

func (*InstanceSetStateParams) SetInstance

func (o *InstanceSetStateParams) SetInstance(instance string)

SetInstance adds the instance to the instance set state params

func (*InstanceSetStateParams) SetService

func (o *InstanceSetStateParams) SetService(service string)

SetService adds the service to the instance set state params

func (*InstanceSetStateParams) SetTimeout

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

SetTimeout adds the timeout to the instance set state params

func (*InstanceSetStateParams) WithContext

WithContext adds the context to the instance set state params

func (*InstanceSetStateParams) WithDesiredState

func (o *InstanceSetStateParams) WithDesiredState(desiredState string) *InstanceSetStateParams

WithDesiredState adds the desiredState to the instance set state params

func (*InstanceSetStateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the instance set state params

func (*InstanceSetStateParams) WithInstance

func (o *InstanceSetStateParams) WithInstance(instance string) *InstanceSetStateParams

WithInstance adds the instance to the instance set state params

func (*InstanceSetStateParams) WithService

func (o *InstanceSetStateParams) WithService(service string) *InstanceSetStateParams

WithService adds the service to the instance set state params

func (*InstanceSetStateParams) WithTimeout

WithTimeout adds the timeout to the instance set state params

func (*InstanceSetStateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InstanceSetStateReader

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

InstanceSetStateReader is a Reader for the InstanceSetState structure.

func (*InstanceSetStateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListInstancesOK

type ListInstancesOK struct {
	Payload *ListInstancesOKBody
}

ListInstancesOK handles this case with default header values.

Instances of a service

func NewListInstancesOK

func NewListInstancesOK() *ListInstancesOK

NewListInstancesOK creates a ListInstancesOK with default headers values

func (*ListInstancesOK) Error

func (o *ListInstancesOK) Error() string

func (*ListInstancesOK) GetPayload

func (o *ListInstancesOK) GetPayload() *ListInstancesOKBody

type ListInstancesOKBody

type ListInstancesOKBody struct {

	// instances
	Instances []string `json:"instances"`
}

ListInstancesOKBody list instances o k body swagger:model ListInstancesOKBody

func (*ListInstancesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListInstancesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListInstancesOKBody) Validate

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

Validate validates this list instances o k body

type ListInstancesParams

type ListInstancesParams struct {

	/*Service
	  Service name

	*/
	Service string

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

ListInstancesParams contains all the parameters to send to the API endpoint for the list instances operation typically these are written to a http.Request

func NewListInstancesParams

func NewListInstancesParams() *ListInstancesParams

NewListInstancesParams creates a new ListInstancesParams object with the default values initialized.

func NewListInstancesParamsWithContext

func NewListInstancesParamsWithContext(ctx context.Context) *ListInstancesParams

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

func NewListInstancesParamsWithHTTPClient

func NewListInstancesParamsWithHTTPClient(client *http.Client) *ListInstancesParams

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

func NewListInstancesParamsWithTimeout

func NewListInstancesParamsWithTimeout(timeout time.Duration) *ListInstancesParams

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

func (*ListInstancesParams) SetContext

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

SetContext adds the context to the list instances params

func (*ListInstancesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list instances params

func (*ListInstancesParams) SetService

func (o *ListInstancesParams) SetService(service string)

SetService adds the service to the list instances params

func (*ListInstancesParams) SetTimeout

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

SetTimeout adds the timeout to the list instances params

func (*ListInstancesParams) WithContext

WithContext adds the context to the list instances params

func (*ListInstancesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list instances params

func (*ListInstancesParams) WithService

func (o *ListInstancesParams) WithService(service string) *ListInstancesParams

WithService adds the service to the list instances params

func (*ListInstancesParams) WithTimeout

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

WithTimeout adds the timeout to the list instances params

func (*ListInstancesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListInstancesReader

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

ListInstancesReader is a Reader for the ListInstances structure.

func (*ListInstancesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServicesForClusterOK

type ListServicesForClusterOK struct {
	Payload *ListServicesForClusterOKBody
}

ListServicesForClusterOK handles this case with default header values.

Services and their instances on the current cluster

func NewListServicesForClusterOK

func NewListServicesForClusterOK() *ListServicesForClusterOK

NewListServicesForClusterOK creates a ListServicesForClusterOK with default headers values

func (*ListServicesForClusterOK) Error

func (o *ListServicesForClusterOK) Error() string

func (*ListServicesForClusterOK) GetPayload

type ListServicesForClusterOKBody

type ListServicesForClusterOKBody struct {

	// services
	Services [][]interface{} `json:"services"`
}

ListServicesForClusterOKBody list services for cluster o k body swagger:model ListServicesForClusterOKBody

func (*ListServicesForClusterOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListServicesForClusterOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListServicesForClusterOKBody) Validate

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

Validate validates this list services for cluster o k body

type ListServicesForClusterParams

type ListServicesForClusterParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListServicesForClusterParams contains all the parameters to send to the API endpoint for the list services for cluster operation typically these are written to a http.Request

func NewListServicesForClusterParams

func NewListServicesForClusterParams() *ListServicesForClusterParams

NewListServicesForClusterParams creates a new ListServicesForClusterParams object with the default values initialized.

func NewListServicesForClusterParamsWithContext

func NewListServicesForClusterParamsWithContext(ctx context.Context) *ListServicesForClusterParams

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

func NewListServicesForClusterParamsWithHTTPClient

func NewListServicesForClusterParamsWithHTTPClient(client *http.Client) *ListServicesForClusterParams

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

func NewListServicesForClusterParamsWithTimeout

func NewListServicesForClusterParamsWithTimeout(timeout time.Duration) *ListServicesForClusterParams

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

func (*ListServicesForClusterParams) SetContext

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

SetContext adds the context to the list services for cluster params

func (*ListServicesForClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list services for cluster params

func (*ListServicesForClusterParams) SetTimeout

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

SetTimeout adds the timeout to the list services for cluster params

func (*ListServicesForClusterParams) WithContext

WithContext adds the context to the list services for cluster params

func (*ListServicesForClusterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list services for cluster params

func (*ListServicesForClusterParams) WithTimeout

WithTimeout adds the timeout to the list services for cluster params

func (*ListServicesForClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServicesForClusterReader

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

ListServicesForClusterReader is a Reader for the ListServicesForCluster structure.

func (*ListServicesForClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StatusInstanceInternalServerError

type StatusInstanceInternalServerError struct {
}

StatusInstanceInternalServerError handles this case with default header values.

Instance failure

func NewStatusInstanceInternalServerError

func NewStatusInstanceInternalServerError() *StatusInstanceInternalServerError

NewStatusInstanceInternalServerError creates a StatusInstanceInternalServerError with default headers values

func (*StatusInstanceInternalServerError) Error

type StatusInstanceNotFound

type StatusInstanceNotFound struct {
}

StatusInstanceNotFound handles this case with default header values.

Deployment key not found

func NewStatusInstanceNotFound

func NewStatusInstanceNotFound() *StatusInstanceNotFound

NewStatusInstanceNotFound creates a StatusInstanceNotFound with default headers values

func (*StatusInstanceNotFound) Error

func (o *StatusInstanceNotFound) Error() string

type StatusInstanceOK

type StatusInstanceOK struct {
	Payload *models.InstanceStatus
}

StatusInstanceOK handles this case with default header values.

Detailed status of an instance

func NewStatusInstanceOK

func NewStatusInstanceOK() *StatusInstanceOK

NewStatusInstanceOK creates a StatusInstanceOK with default headers values

func (*StatusInstanceOK) Error

func (o *StatusInstanceOK) Error() string

func (*StatusInstanceOK) GetPayload

func (o *StatusInstanceOK) GetPayload() *models.InstanceStatus

type StatusInstanceParams

type StatusInstanceParams struct {

	/*IncludeEnvoy
	  Include Envoy information

	*/
	IncludeEnvoy *bool
	/*IncludeMesos
	  Include Mesos information

	*/
	IncludeMesos *bool
	/*IncludeSmartstack
	  Include Smartstack information

	*/
	IncludeSmartstack *bool
	/*Instance
	  Instance name

	*/
	Instance string
	/*Service
	  Service name

	*/
	Service string
	/*Verbose
	  Include verbose status information

	*/
	Verbose *int32

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

StatusInstanceParams contains all the parameters to send to the API endpoint for the status instance operation typically these are written to a http.Request

func NewStatusInstanceParams

func NewStatusInstanceParams() *StatusInstanceParams

NewStatusInstanceParams creates a new StatusInstanceParams object with the default values initialized.

func NewStatusInstanceParamsWithContext

func NewStatusInstanceParamsWithContext(ctx context.Context) *StatusInstanceParams

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

func NewStatusInstanceParamsWithHTTPClient

func NewStatusInstanceParamsWithHTTPClient(client *http.Client) *StatusInstanceParams

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

func NewStatusInstanceParamsWithTimeout

func NewStatusInstanceParamsWithTimeout(timeout time.Duration) *StatusInstanceParams

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

func (*StatusInstanceParams) SetContext

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

SetContext adds the context to the status instance params

func (*StatusInstanceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the status instance params

func (*StatusInstanceParams) SetIncludeEnvoy

func (o *StatusInstanceParams) SetIncludeEnvoy(includeEnvoy *bool)

SetIncludeEnvoy adds the includeEnvoy to the status instance params

func (*StatusInstanceParams) SetIncludeMesos

func (o *StatusInstanceParams) SetIncludeMesos(includeMesos *bool)

SetIncludeMesos adds the includeMesos to the status instance params

func (*StatusInstanceParams) SetIncludeSmartstack

func (o *StatusInstanceParams) SetIncludeSmartstack(includeSmartstack *bool)

SetIncludeSmartstack adds the includeSmartstack to the status instance params

func (*StatusInstanceParams) SetInstance

func (o *StatusInstanceParams) SetInstance(instance string)

SetInstance adds the instance to the status instance params

func (*StatusInstanceParams) SetService

func (o *StatusInstanceParams) SetService(service string)

SetService adds the service to the status instance params

func (*StatusInstanceParams) SetTimeout

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

SetTimeout adds the timeout to the status instance params

func (*StatusInstanceParams) SetVerbose

func (o *StatusInstanceParams) SetVerbose(verbose *int32)

SetVerbose adds the verbose to the status instance params

func (*StatusInstanceParams) WithContext

WithContext adds the context to the status instance params

func (*StatusInstanceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the status instance params

func (*StatusInstanceParams) WithIncludeEnvoy

func (o *StatusInstanceParams) WithIncludeEnvoy(includeEnvoy *bool) *StatusInstanceParams

WithIncludeEnvoy adds the includeEnvoy to the status instance params

func (*StatusInstanceParams) WithIncludeMesos

func (o *StatusInstanceParams) WithIncludeMesos(includeMesos *bool) *StatusInstanceParams

WithIncludeMesos adds the includeMesos to the status instance params

func (*StatusInstanceParams) WithIncludeSmartstack

func (o *StatusInstanceParams) WithIncludeSmartstack(includeSmartstack *bool) *StatusInstanceParams

WithIncludeSmartstack adds the includeSmartstack to the status instance params

func (*StatusInstanceParams) WithInstance

func (o *StatusInstanceParams) WithInstance(instance string) *StatusInstanceParams

WithInstance adds the instance to the status instance params

func (*StatusInstanceParams) WithService

func (o *StatusInstanceParams) WithService(service string) *StatusInstanceParams

WithService adds the service to the status instance params

func (*StatusInstanceParams) WithTimeout

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

WithTimeout adds the timeout to the status instance params

func (*StatusInstanceParams) WithVerbose

func (o *StatusInstanceParams) WithVerbose(verbose *int32) *StatusInstanceParams

WithVerbose adds the verbose to the status instance params

func (*StatusInstanceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StatusInstanceReader

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

StatusInstanceReader is a Reader for the StatusInstance structure.

func (*StatusInstanceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TaskInstanceBadRequest

type TaskInstanceBadRequest struct {
}

TaskInstanceBadRequest handles this case with default header values.

Bad request

func NewTaskInstanceBadRequest

func NewTaskInstanceBadRequest() *TaskInstanceBadRequest

NewTaskInstanceBadRequest creates a TaskInstanceBadRequest with default headers values

func (*TaskInstanceBadRequest) Error

func (o *TaskInstanceBadRequest) Error() string

type TaskInstanceInternalServerError

type TaskInstanceInternalServerError struct {
}

TaskInstanceInternalServerError handles this case with default header values.

Instance failure

func NewTaskInstanceInternalServerError

func NewTaskInstanceInternalServerError() *TaskInstanceInternalServerError

NewTaskInstanceInternalServerError creates a TaskInstanceInternalServerError with default headers values

func (*TaskInstanceInternalServerError) Error

type TaskInstanceNotFound

type TaskInstanceNotFound struct {
}

TaskInstanceNotFound handles this case with default header values.

Task with ID not found

func NewTaskInstanceNotFound

func NewTaskInstanceNotFound() *TaskInstanceNotFound

NewTaskInstanceNotFound creates a TaskInstanceNotFound with default headers values

func (*TaskInstanceNotFound) Error

func (o *TaskInstanceNotFound) Error() string

type TaskInstanceOK

type TaskInstanceOK struct {
	Payload models.InstanceTask
}

TaskInstanceOK handles this case with default header values.

Task associated with an instance with specified ID

func NewTaskInstanceOK

func NewTaskInstanceOK() *TaskInstanceOK

NewTaskInstanceOK creates a TaskInstanceOK with default headers values

func (*TaskInstanceOK) Error

func (o *TaskInstanceOK) Error() string

func (*TaskInstanceOK) GetPayload

func (o *TaskInstanceOK) GetPayload() models.InstanceTask

type TaskInstanceParams

type TaskInstanceParams struct {

	/*Instance
	  Instance name

	*/
	Instance string
	/*Service
	  Service name

	*/
	Service string
	/*TaskID
	  mesos task id

	*/
	TaskID string
	/*Verbose
	  Return slave and executor for task

	*/
	Verbose *bool

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

TaskInstanceParams contains all the parameters to send to the API endpoint for the task instance operation typically these are written to a http.Request

func NewTaskInstanceParams

func NewTaskInstanceParams() *TaskInstanceParams

NewTaskInstanceParams creates a new TaskInstanceParams object with the default values initialized.

func NewTaskInstanceParamsWithContext

func NewTaskInstanceParamsWithContext(ctx context.Context) *TaskInstanceParams

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

func NewTaskInstanceParamsWithHTTPClient

func NewTaskInstanceParamsWithHTTPClient(client *http.Client) *TaskInstanceParams

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

func NewTaskInstanceParamsWithTimeout

func NewTaskInstanceParamsWithTimeout(timeout time.Duration) *TaskInstanceParams

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

func (*TaskInstanceParams) SetContext

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

SetContext adds the context to the task instance params

func (*TaskInstanceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the task instance params

func (*TaskInstanceParams) SetInstance

func (o *TaskInstanceParams) SetInstance(instance string)

SetInstance adds the instance to the task instance params

func (*TaskInstanceParams) SetService

func (o *TaskInstanceParams) SetService(service string)

SetService adds the service to the task instance params

func (*TaskInstanceParams) SetTaskID

func (o *TaskInstanceParams) SetTaskID(taskID string)

SetTaskID adds the taskId to the task instance params

func (*TaskInstanceParams) SetTimeout

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

SetTimeout adds the timeout to the task instance params

func (*TaskInstanceParams) SetVerbose

func (o *TaskInstanceParams) SetVerbose(verbose *bool)

SetVerbose adds the verbose to the task instance params

func (*TaskInstanceParams) WithContext

WithContext adds the context to the task instance params

func (*TaskInstanceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the task instance params

func (*TaskInstanceParams) WithInstance

func (o *TaskInstanceParams) WithInstance(instance string) *TaskInstanceParams

WithInstance adds the instance to the task instance params

func (*TaskInstanceParams) WithService

func (o *TaskInstanceParams) WithService(service string) *TaskInstanceParams

WithService adds the service to the task instance params

func (*TaskInstanceParams) WithTaskID

func (o *TaskInstanceParams) WithTaskID(taskID string) *TaskInstanceParams

WithTaskID adds the taskID to the task instance params

func (*TaskInstanceParams) WithTimeout

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

WithTimeout adds the timeout to the task instance params

func (*TaskInstanceParams) WithVerbose

func (o *TaskInstanceParams) WithVerbose(verbose *bool) *TaskInstanceParams

WithVerbose adds the verbose to the task instance params

func (*TaskInstanceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TaskInstanceReader

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

TaskInstanceReader is a Reader for the TaskInstance structure.

func (*TaskInstanceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TasksInstanceBadRequest

type TasksInstanceBadRequest struct {
}

TasksInstanceBadRequest handles this case with default header values.

Bad request

func NewTasksInstanceBadRequest

func NewTasksInstanceBadRequest() *TasksInstanceBadRequest

NewTasksInstanceBadRequest creates a TasksInstanceBadRequest with default headers values

func (*TasksInstanceBadRequest) Error

func (o *TasksInstanceBadRequest) Error() string

type TasksInstanceInternalServerError

type TasksInstanceInternalServerError struct {
}

TasksInstanceInternalServerError handles this case with default header values.

Instance failure

func NewTasksInstanceInternalServerError

func NewTasksInstanceInternalServerError() *TasksInstanceInternalServerError

NewTasksInstanceInternalServerError creates a TasksInstanceInternalServerError with default headers values

func (*TasksInstanceInternalServerError) Error

type TasksInstanceNotFound

type TasksInstanceNotFound struct {
}

TasksInstanceNotFound handles this case with default header values.

Deployment key not found

func NewTasksInstanceNotFound

func NewTasksInstanceNotFound() *TasksInstanceNotFound

NewTasksInstanceNotFound creates a TasksInstanceNotFound with default headers values

func (*TasksInstanceNotFound) Error

func (o *TasksInstanceNotFound) Error() string

type TasksInstanceOK

type TasksInstanceOK struct {
	Payload models.InstanceTasks
}

TasksInstanceOK handles this case with default header values.

List of tasks associated with an instance

func NewTasksInstanceOK

func NewTasksInstanceOK() *TasksInstanceOK

NewTasksInstanceOK creates a TasksInstanceOK with default headers values

func (*TasksInstanceOK) Error

func (o *TasksInstanceOK) Error() string

func (*TasksInstanceOK) GetPayload

func (o *TasksInstanceOK) GetPayload() models.InstanceTasks

type TasksInstanceParams

type TasksInstanceParams struct {

	/*Instance
	  Instance name

	*/
	Instance string
	/*Service
	  Service name

	*/
	Service string
	/*SlaveHostname
	  slave hostname to filter tasks by

	*/
	SlaveHostname *string
	/*Verbose
	  Return slave and executor for task

	*/
	Verbose *bool

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

TasksInstanceParams contains all the parameters to send to the API endpoint for the tasks instance operation typically these are written to a http.Request

func NewTasksInstanceParams

func NewTasksInstanceParams() *TasksInstanceParams

NewTasksInstanceParams creates a new TasksInstanceParams object with the default values initialized.

func NewTasksInstanceParamsWithContext

func NewTasksInstanceParamsWithContext(ctx context.Context) *TasksInstanceParams

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

func NewTasksInstanceParamsWithHTTPClient

func NewTasksInstanceParamsWithHTTPClient(client *http.Client) *TasksInstanceParams

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

func NewTasksInstanceParamsWithTimeout

func NewTasksInstanceParamsWithTimeout(timeout time.Duration) *TasksInstanceParams

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

func (*TasksInstanceParams) SetContext

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

SetContext adds the context to the tasks instance params

func (*TasksInstanceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tasks instance params

func (*TasksInstanceParams) SetInstance

func (o *TasksInstanceParams) SetInstance(instance string)

SetInstance adds the instance to the tasks instance params

func (*TasksInstanceParams) SetService

func (o *TasksInstanceParams) SetService(service string)

SetService adds the service to the tasks instance params

func (*TasksInstanceParams) SetSlaveHostname

func (o *TasksInstanceParams) SetSlaveHostname(slaveHostname *string)

SetSlaveHostname adds the slaveHostname to the tasks instance params

func (*TasksInstanceParams) SetTimeout

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

SetTimeout adds the timeout to the tasks instance params

func (*TasksInstanceParams) SetVerbose

func (o *TasksInstanceParams) SetVerbose(verbose *bool)

SetVerbose adds the verbose to the tasks instance params

func (*TasksInstanceParams) WithContext

WithContext adds the context to the tasks instance params

func (*TasksInstanceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the tasks instance params

func (*TasksInstanceParams) WithInstance

func (o *TasksInstanceParams) WithInstance(instance string) *TasksInstanceParams

WithInstance adds the instance to the tasks instance params

func (*TasksInstanceParams) WithService

func (o *TasksInstanceParams) WithService(service string) *TasksInstanceParams

WithService adds the service to the tasks instance params

func (*TasksInstanceParams) WithSlaveHostname

func (o *TasksInstanceParams) WithSlaveHostname(slaveHostname *string) *TasksInstanceParams

WithSlaveHostname adds the slaveHostname to the tasks instance params

func (*TasksInstanceParams) WithTimeout

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

WithTimeout adds the timeout to the tasks instance params

func (*TasksInstanceParams) WithVerbose

func (o *TasksInstanceParams) WithVerbose(verbose *bool) *TasksInstanceParams

WithVerbose adds the verbose to the tasks instance params

func (*TasksInstanceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TasksInstanceReader

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

TasksInstanceReader is a Reader for the TasksInstance structure.

func (*TasksInstanceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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