global_services

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CreateGlobalServiceBodySizeSmall captures enum value "small"
	CreateGlobalServiceBodySizeSmall string = "small"

	// CreateGlobalServiceBodySizeMedium captures enum value "medium"
	CreateGlobalServiceBodySizeMedium string = "medium"

	// CreateGlobalServiceBodySizeLarge captures enum value "large"
	CreateGlobalServiceBodySizeLarge string = "large"
)
View Source
const (

	// UpdateGlobalServiceBodySizeSmall captures enum value "small"
	UpdateGlobalServiceBodySizeSmall string = "small"

	// UpdateGlobalServiceBodySizeMedium captures enum value "medium"
	UpdateGlobalServiceBodySizeMedium string = "medium"

	// UpdateGlobalServiceBodySizeLarge captures enum value "large"
	UpdateGlobalServiceBodySizeLarge string = "large"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for global services API

func (*Client) CreateGlobalService

func (a *Client) CreateGlobalService(params *CreateGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateGlobalServiceOK, error)
CreateGlobalService creates global service

Creates global scoped knative service.

Service Names are unique on a scope level. These services can be used as functions in workflows, more about this can be read here: https://docs.direktiv.io/docs/walkthrough/using-functions.html

func (*Client) DeleteGlobalRevision

func (a *Client) DeleteGlobalRevision(params *DeleteGlobalRevisionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteGlobalRevisionOK, error)
DeleteGlobalRevision deletes global service revision

Delete a global scoped knative service revision.

The target revision generation is the number suffix on a revision. Example: A revision named 'global-fast-request-00003' would have the revisionGeneration '00003'. Note: Revisions with traffic cannot be deleted.

func (*Client) DeleteGlobalService

func (a *Client) DeleteGlobalService(params *DeleteGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteGlobalServiceOK, error)

DeleteGlobalService deletes global service

Deletes global scoped knative service and all its revisions.

func (*Client) GetGlobalService

func (a *Client) GetGlobalService(params *GetGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGlobalServiceOK, error)

GetGlobalService gets global service details

Get details of a global scoped knative service.

func (*Client) GetGlobalServiceList

func (a *Client) GetGlobalServiceList(params *GetGlobalServiceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGlobalServiceListOK, error)

GetGlobalServiceList gets global services list

Gets a list of global knative services.

func (*Client) ListGlobalServiceRevisionPods

func (a *Client) ListGlobalServiceRevisionPods(params *ListGlobalServiceRevisionPodsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGlobalServiceRevisionPodsOK, error)
ListGlobalServiceRevisionPods gets global service revision pods list

List a revisions pods of a global scoped knative service.

The target revision generation is the number suffix on a revision. Example: A revision named 'global-fast-request-00003' would have the revisionGeneration '00003' .

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateGlobalService

func (a *Client) UpdateGlobalService(params *UpdateGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGlobalServiceOK, error)
UpdateGlobalService creates global service revision

Creates a new global scoped knative service revision

Revisions are created with a traffic percentage. This percentage controls how much traffic will be directed to this revision. Traffic can be set to 100 to direct all traffic.

func (*Client) UpdateGlobalServiceTraffic

func (a *Client) UpdateGlobalServiceTraffic(params *UpdateGlobalServiceTrafficParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGlobalServiceTrafficOK, error)
UpdateGlobalServiceTraffic updates global service traffic

Update Global Service traffic directed to each revision, traffic can only be configured between two revisions.

All other revisions will bet set to 0 traffic.

func (*Client) WatchGlobalServiceRevision

func (a *Client) WatchGlobalServiceRevision(params *WatchGlobalServiceRevisionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WatchGlobalServiceRevisionOK, error)
WatchGlobalServiceRevision watches global service revision

Watch a global scoped knative service revision.

The target revision generation is the number suffix on a revision. Example: A revision named 'global-fast-request-00003' would have the revisionGeneration '00003'. Note: This is a Server-Sent-Event endpoint, and will not work with the default swagger client.

func (*Client) WatchGlobalServiceRevisionList

func (a *Client) WatchGlobalServiceRevisionList(params *WatchGlobalServiceRevisionListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WatchGlobalServiceRevisionListOK, error)
WatchGlobalServiceRevisionList watches global service revision list

Watch the revision list of a global scoped knative service.

Note: This is a Server-Sent-Event endpoint, and will not work with the default swagger client.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateGlobalService(params *CreateGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateGlobalServiceOK, error)

	DeleteGlobalRevision(params *DeleteGlobalRevisionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteGlobalRevisionOK, error)

	DeleteGlobalService(params *DeleteGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteGlobalServiceOK, error)

	GetGlobalService(params *GetGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGlobalServiceOK, error)

	GetGlobalServiceList(params *GetGlobalServiceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGlobalServiceListOK, error)

	ListGlobalServiceRevisionPods(params *ListGlobalServiceRevisionPodsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGlobalServiceRevisionPodsOK, error)

	UpdateGlobalService(params *UpdateGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGlobalServiceOK, error)

	UpdateGlobalServiceTraffic(params *UpdateGlobalServiceTrafficParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateGlobalServiceTrafficOK, error)

	WatchGlobalServiceRevision(params *WatchGlobalServiceRevisionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WatchGlobalServiceRevisionOK, error)

	WatchGlobalServiceRevisionList(params *WatchGlobalServiceRevisionListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WatchGlobalServiceRevisionListOK, 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 global services API client.

type CreateGlobalServiceBody

type CreateGlobalServiceBody struct {

	// cmd
	// Required: true
	Cmd *string `json:"cmd"`

	// Target image a service will use
	// Required: true
	Image *string `json:"image"`

	// Minimum amount of service pods to be live
	// Required: true
	MinScale *int64 `json:"minScale"`

	// Name of new service
	// Required: true
	Name *string `json:"name"`

	// Size of created service pods
	// Required: true
	// Enum: [small medium large]
	Size *string `json:"size"`
}

CreateGlobalServiceBody create global service body // Example: {"cmd":"","image":"direktiv/request:v12","minScale":"1","name":"fast-request","size":"small"} swagger:model CreateGlobalServiceBody

func (*CreateGlobalServiceBody) ContextValidate

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

ContextValidate validates this create global service body based on context it is used

func (*CreateGlobalServiceBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateGlobalServiceBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateGlobalServiceBody) Validate

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

Validate validates this create global service body

type CreateGlobalServiceOK

type CreateGlobalServiceOK struct {
}
CreateGlobalServiceOK describes a response with status code 200, with default header values.

successfully created service

func NewCreateGlobalServiceOK

func NewCreateGlobalServiceOK() *CreateGlobalServiceOK

NewCreateGlobalServiceOK creates a CreateGlobalServiceOK with default headers values

func (*CreateGlobalServiceOK) Error

func (o *CreateGlobalServiceOK) Error() string

type CreateGlobalServiceParams

type CreateGlobalServiceParams struct {

	/* Service.

	   Payload that contains information on new service
	*/
	Service CreateGlobalServiceBody

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

CreateGlobalServiceParams contains all the parameters to send to the API endpoint

for the create global service operation.

Typically these are written to a http.Request.

func NewCreateGlobalServiceParams

func NewCreateGlobalServiceParams() *CreateGlobalServiceParams

NewCreateGlobalServiceParams creates a new CreateGlobalServiceParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateGlobalServiceParamsWithContext

func NewCreateGlobalServiceParamsWithContext(ctx context.Context) *CreateGlobalServiceParams

NewCreateGlobalServiceParamsWithContext creates a new CreateGlobalServiceParams object with the ability to set a context for a request.

func NewCreateGlobalServiceParamsWithHTTPClient

func NewCreateGlobalServiceParamsWithHTTPClient(client *http.Client) *CreateGlobalServiceParams

NewCreateGlobalServiceParamsWithHTTPClient creates a new CreateGlobalServiceParams object with the ability to set a custom HTTPClient for a request.

func NewCreateGlobalServiceParamsWithTimeout

func NewCreateGlobalServiceParamsWithTimeout(timeout time.Duration) *CreateGlobalServiceParams

NewCreateGlobalServiceParamsWithTimeout creates a new CreateGlobalServiceParams object with the ability to set a timeout on a request.

func (*CreateGlobalServiceParams) SetContext

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

SetContext adds the context to the create global service params

func (*CreateGlobalServiceParams) SetDefaults

func (o *CreateGlobalServiceParams) SetDefaults()

SetDefaults hydrates default values in the create global service params (not the query body).

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

func (*CreateGlobalServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create global service params

func (*CreateGlobalServiceParams) SetService

func (o *CreateGlobalServiceParams) SetService(service CreateGlobalServiceBody)

SetService adds the service to the create global service params

func (*CreateGlobalServiceParams) SetTimeout

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

SetTimeout adds the timeout to the create global service params

func (*CreateGlobalServiceParams) WithContext

WithContext adds the context to the create global service params

func (*CreateGlobalServiceParams) WithDefaults

WithDefaults hydrates default values in the create global service params (not the query body).

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

func (*CreateGlobalServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create global service params

func (*CreateGlobalServiceParams) WithService

WithService adds the service to the create global service params

func (*CreateGlobalServiceParams) WithTimeout

WithTimeout adds the timeout to the create global service params

func (*CreateGlobalServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateGlobalServiceReader

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

CreateGlobalServiceReader is a Reader for the CreateGlobalService structure.

func (*CreateGlobalServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteGlobalRevisionOK

type DeleteGlobalRevisionOK struct {
}
DeleteGlobalRevisionOK describes a response with status code 200, with default header values.

successfully deleted service revision

func NewDeleteGlobalRevisionOK

func NewDeleteGlobalRevisionOK() *DeleteGlobalRevisionOK

NewDeleteGlobalRevisionOK creates a DeleteGlobalRevisionOK with default headers values

func (*DeleteGlobalRevisionOK) Error

func (o *DeleteGlobalRevisionOK) Error() string

type DeleteGlobalRevisionParams

type DeleteGlobalRevisionParams struct {

	/* RevisionGeneration.

	   target revision generation
	*/
	RevisionGeneration string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

DeleteGlobalRevisionParams contains all the parameters to send to the API endpoint

for the delete global revision operation.

Typically these are written to a http.Request.

func NewDeleteGlobalRevisionParams

func NewDeleteGlobalRevisionParams() *DeleteGlobalRevisionParams

NewDeleteGlobalRevisionParams creates a new DeleteGlobalRevisionParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteGlobalRevisionParamsWithContext

func NewDeleteGlobalRevisionParamsWithContext(ctx context.Context) *DeleteGlobalRevisionParams

NewDeleteGlobalRevisionParamsWithContext creates a new DeleteGlobalRevisionParams object with the ability to set a context for a request.

func NewDeleteGlobalRevisionParamsWithHTTPClient

func NewDeleteGlobalRevisionParamsWithHTTPClient(client *http.Client) *DeleteGlobalRevisionParams

NewDeleteGlobalRevisionParamsWithHTTPClient creates a new DeleteGlobalRevisionParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteGlobalRevisionParamsWithTimeout

func NewDeleteGlobalRevisionParamsWithTimeout(timeout time.Duration) *DeleteGlobalRevisionParams

NewDeleteGlobalRevisionParamsWithTimeout creates a new DeleteGlobalRevisionParams object with the ability to set a timeout on a request.

func (*DeleteGlobalRevisionParams) SetContext

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

SetContext adds the context to the delete global revision params

func (*DeleteGlobalRevisionParams) SetDefaults

func (o *DeleteGlobalRevisionParams) SetDefaults()

SetDefaults hydrates default values in the delete global revision params (not the query body).

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

func (*DeleteGlobalRevisionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete global revision params

func (*DeleteGlobalRevisionParams) SetRevisionGeneration

func (o *DeleteGlobalRevisionParams) SetRevisionGeneration(revisionGeneration string)

SetRevisionGeneration adds the revisionGeneration to the delete global revision params

func (*DeleteGlobalRevisionParams) SetServiceName

func (o *DeleteGlobalRevisionParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the delete global revision params

func (*DeleteGlobalRevisionParams) SetTimeout

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

SetTimeout adds the timeout to the delete global revision params

func (*DeleteGlobalRevisionParams) WithContext

WithContext adds the context to the delete global revision params

func (*DeleteGlobalRevisionParams) WithDefaults

WithDefaults hydrates default values in the delete global revision params (not the query body).

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

func (*DeleteGlobalRevisionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete global revision params

func (*DeleteGlobalRevisionParams) WithRevisionGeneration

func (o *DeleteGlobalRevisionParams) WithRevisionGeneration(revisionGeneration string) *DeleteGlobalRevisionParams

WithRevisionGeneration adds the revisionGeneration to the delete global revision params

func (*DeleteGlobalRevisionParams) WithServiceName

func (o *DeleteGlobalRevisionParams) WithServiceName(serviceName string) *DeleteGlobalRevisionParams

WithServiceName adds the serviceName to the delete global revision params

func (*DeleteGlobalRevisionParams) WithTimeout

WithTimeout adds the timeout to the delete global revision params

func (*DeleteGlobalRevisionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteGlobalRevisionReader

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

DeleteGlobalRevisionReader is a Reader for the DeleteGlobalRevision structure.

func (*DeleteGlobalRevisionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteGlobalServiceOK

type DeleteGlobalServiceOK struct {
}
DeleteGlobalServiceOK describes a response with status code 200, with default header values.

successfully deleted service

func NewDeleteGlobalServiceOK

func NewDeleteGlobalServiceOK() *DeleteGlobalServiceOK

NewDeleteGlobalServiceOK creates a DeleteGlobalServiceOK with default headers values

func (*DeleteGlobalServiceOK) Error

func (o *DeleteGlobalServiceOK) Error() string

type DeleteGlobalServiceParams

type DeleteGlobalServiceParams struct {

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

DeleteGlobalServiceParams contains all the parameters to send to the API endpoint

for the delete global service operation.

Typically these are written to a http.Request.

func NewDeleteGlobalServiceParams

func NewDeleteGlobalServiceParams() *DeleteGlobalServiceParams

NewDeleteGlobalServiceParams creates a new DeleteGlobalServiceParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteGlobalServiceParamsWithContext

func NewDeleteGlobalServiceParamsWithContext(ctx context.Context) *DeleteGlobalServiceParams

NewDeleteGlobalServiceParamsWithContext creates a new DeleteGlobalServiceParams object with the ability to set a context for a request.

func NewDeleteGlobalServiceParamsWithHTTPClient

func NewDeleteGlobalServiceParamsWithHTTPClient(client *http.Client) *DeleteGlobalServiceParams

NewDeleteGlobalServiceParamsWithHTTPClient creates a new DeleteGlobalServiceParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteGlobalServiceParamsWithTimeout

func NewDeleteGlobalServiceParamsWithTimeout(timeout time.Duration) *DeleteGlobalServiceParams

NewDeleteGlobalServiceParamsWithTimeout creates a new DeleteGlobalServiceParams object with the ability to set a timeout on a request.

func (*DeleteGlobalServiceParams) SetContext

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

SetContext adds the context to the delete global service params

func (*DeleteGlobalServiceParams) SetDefaults

func (o *DeleteGlobalServiceParams) SetDefaults()

SetDefaults hydrates default values in the delete global service params (not the query body).

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

func (*DeleteGlobalServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete global service params

func (*DeleteGlobalServiceParams) SetServiceName

func (o *DeleteGlobalServiceParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the delete global service params

func (*DeleteGlobalServiceParams) SetTimeout

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

SetTimeout adds the timeout to the delete global service params

func (*DeleteGlobalServiceParams) WithContext

WithContext adds the context to the delete global service params

func (*DeleteGlobalServiceParams) WithDefaults

WithDefaults hydrates default values in the delete global service params (not the query body).

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

func (*DeleteGlobalServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete global service params

func (*DeleteGlobalServiceParams) WithServiceName

func (o *DeleteGlobalServiceParams) WithServiceName(serviceName string) *DeleteGlobalServiceParams

WithServiceName adds the serviceName to the delete global service params

func (*DeleteGlobalServiceParams) WithTimeout

WithTimeout adds the timeout to the delete global service params

func (*DeleteGlobalServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteGlobalServiceReader

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

DeleteGlobalServiceReader is a Reader for the DeleteGlobalService structure.

func (*DeleteGlobalServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGlobalServiceListOK

type GetGlobalServiceListOK struct {
}
GetGlobalServiceListOK describes a response with status code 200, with default header values.

successfully got services list

func NewGetGlobalServiceListOK

func NewGetGlobalServiceListOK() *GetGlobalServiceListOK

NewGetGlobalServiceListOK creates a GetGlobalServiceListOK with default headers values

func (*GetGlobalServiceListOK) Error

func (o *GetGlobalServiceListOK) Error() string

type GetGlobalServiceListParams

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

GetGlobalServiceListParams contains all the parameters to send to the API endpoint

for the get global service list operation.

Typically these are written to a http.Request.

func NewGetGlobalServiceListParams

func NewGetGlobalServiceListParams() *GetGlobalServiceListParams

NewGetGlobalServiceListParams creates a new GetGlobalServiceListParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetGlobalServiceListParamsWithContext

func NewGetGlobalServiceListParamsWithContext(ctx context.Context) *GetGlobalServiceListParams

NewGetGlobalServiceListParamsWithContext creates a new GetGlobalServiceListParams object with the ability to set a context for a request.

func NewGetGlobalServiceListParamsWithHTTPClient

func NewGetGlobalServiceListParamsWithHTTPClient(client *http.Client) *GetGlobalServiceListParams

NewGetGlobalServiceListParamsWithHTTPClient creates a new GetGlobalServiceListParams object with the ability to set a custom HTTPClient for a request.

func NewGetGlobalServiceListParamsWithTimeout

func NewGetGlobalServiceListParamsWithTimeout(timeout time.Duration) *GetGlobalServiceListParams

NewGetGlobalServiceListParamsWithTimeout creates a new GetGlobalServiceListParams object with the ability to set a timeout on a request.

func (*GetGlobalServiceListParams) SetContext

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

SetContext adds the context to the get global service list params

func (*GetGlobalServiceListParams) SetDefaults

func (o *GetGlobalServiceListParams) SetDefaults()

SetDefaults hydrates default values in the get global service list params (not the query body).

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

func (*GetGlobalServiceListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get global service list params

func (*GetGlobalServiceListParams) SetTimeout

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

SetTimeout adds the timeout to the get global service list params

func (*GetGlobalServiceListParams) WithContext

WithContext adds the context to the get global service list params

func (*GetGlobalServiceListParams) WithDefaults

WithDefaults hydrates default values in the get global service list params (not the query body).

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

func (*GetGlobalServiceListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get global service list params

func (*GetGlobalServiceListParams) WithTimeout

WithTimeout adds the timeout to the get global service list params

func (*GetGlobalServiceListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGlobalServiceListReader

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

GetGlobalServiceListReader is a Reader for the GetGlobalServiceList structure.

func (*GetGlobalServiceListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGlobalServiceOK

type GetGlobalServiceOK struct {
}
GetGlobalServiceOK describes a response with status code 200, with default header values.

successfully got service details

func NewGetGlobalServiceOK

func NewGetGlobalServiceOK() *GetGlobalServiceOK

NewGetGlobalServiceOK creates a GetGlobalServiceOK with default headers values

func (*GetGlobalServiceOK) Error

func (o *GetGlobalServiceOK) Error() string

type GetGlobalServiceParams

type GetGlobalServiceParams struct {

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

GetGlobalServiceParams contains all the parameters to send to the API endpoint

for the get global service operation.

Typically these are written to a http.Request.

func NewGetGlobalServiceParams

func NewGetGlobalServiceParams() *GetGlobalServiceParams

NewGetGlobalServiceParams creates a new GetGlobalServiceParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetGlobalServiceParamsWithContext

func NewGetGlobalServiceParamsWithContext(ctx context.Context) *GetGlobalServiceParams

NewGetGlobalServiceParamsWithContext creates a new GetGlobalServiceParams object with the ability to set a context for a request.

func NewGetGlobalServiceParamsWithHTTPClient

func NewGetGlobalServiceParamsWithHTTPClient(client *http.Client) *GetGlobalServiceParams

NewGetGlobalServiceParamsWithHTTPClient creates a new GetGlobalServiceParams object with the ability to set a custom HTTPClient for a request.

func NewGetGlobalServiceParamsWithTimeout

func NewGetGlobalServiceParamsWithTimeout(timeout time.Duration) *GetGlobalServiceParams

NewGetGlobalServiceParamsWithTimeout creates a new GetGlobalServiceParams object with the ability to set a timeout on a request.

func (*GetGlobalServiceParams) SetContext

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

SetContext adds the context to the get global service params

func (*GetGlobalServiceParams) SetDefaults

func (o *GetGlobalServiceParams) SetDefaults()

SetDefaults hydrates default values in the get global service params (not the query body).

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

func (*GetGlobalServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get global service params

func (*GetGlobalServiceParams) SetServiceName

func (o *GetGlobalServiceParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the get global service params

func (*GetGlobalServiceParams) SetTimeout

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

SetTimeout adds the timeout to the get global service params

func (*GetGlobalServiceParams) WithContext

WithContext adds the context to the get global service params

func (*GetGlobalServiceParams) WithDefaults

WithDefaults hydrates default values in the get global service params (not the query body).

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

func (*GetGlobalServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get global service params

func (*GetGlobalServiceParams) WithServiceName

func (o *GetGlobalServiceParams) WithServiceName(serviceName string) *GetGlobalServiceParams

WithServiceName adds the serviceName to the get global service params

func (*GetGlobalServiceParams) WithTimeout

WithTimeout adds the timeout to the get global service params

func (*GetGlobalServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGlobalServiceReader

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

GetGlobalServiceReader is a Reader for the GetGlobalService structure.

func (*GetGlobalServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListGlobalServiceRevisionPodsOK

type ListGlobalServiceRevisionPodsOK struct {
}
ListGlobalServiceRevisionPodsOK describes a response with status code 200, with default header values.

successfully got list of a service revision pods

func NewListGlobalServiceRevisionPodsOK

func NewListGlobalServiceRevisionPodsOK() *ListGlobalServiceRevisionPodsOK

NewListGlobalServiceRevisionPodsOK creates a ListGlobalServiceRevisionPodsOK with default headers values

func (*ListGlobalServiceRevisionPodsOK) Error

type ListGlobalServiceRevisionPodsParams

type ListGlobalServiceRevisionPodsParams struct {

	/* RevisionGeneration.

	   target revision generation
	*/
	RevisionGeneration string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

ListGlobalServiceRevisionPodsParams contains all the parameters to send to the API endpoint

for the list global service revision pods operation.

Typically these are written to a http.Request.

func NewListGlobalServiceRevisionPodsParams

func NewListGlobalServiceRevisionPodsParams() *ListGlobalServiceRevisionPodsParams

NewListGlobalServiceRevisionPodsParams creates a new ListGlobalServiceRevisionPodsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListGlobalServiceRevisionPodsParamsWithContext

func NewListGlobalServiceRevisionPodsParamsWithContext(ctx context.Context) *ListGlobalServiceRevisionPodsParams

NewListGlobalServiceRevisionPodsParamsWithContext creates a new ListGlobalServiceRevisionPodsParams object with the ability to set a context for a request.

func NewListGlobalServiceRevisionPodsParamsWithHTTPClient

func NewListGlobalServiceRevisionPodsParamsWithHTTPClient(client *http.Client) *ListGlobalServiceRevisionPodsParams

NewListGlobalServiceRevisionPodsParamsWithHTTPClient creates a new ListGlobalServiceRevisionPodsParams object with the ability to set a custom HTTPClient for a request.

func NewListGlobalServiceRevisionPodsParamsWithTimeout

func NewListGlobalServiceRevisionPodsParamsWithTimeout(timeout time.Duration) *ListGlobalServiceRevisionPodsParams

NewListGlobalServiceRevisionPodsParamsWithTimeout creates a new ListGlobalServiceRevisionPodsParams object with the ability to set a timeout on a request.

func (*ListGlobalServiceRevisionPodsParams) SetContext

SetContext adds the context to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) SetDefaults

func (o *ListGlobalServiceRevisionPodsParams) SetDefaults()

SetDefaults hydrates default values in the list global service revision pods params (not the query body).

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

func (*ListGlobalServiceRevisionPodsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) SetRevisionGeneration

func (o *ListGlobalServiceRevisionPodsParams) SetRevisionGeneration(revisionGeneration string)

SetRevisionGeneration adds the revisionGeneration to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) SetServiceName

func (o *ListGlobalServiceRevisionPodsParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) SetTimeout

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

SetTimeout adds the timeout to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) WithContext

WithContext adds the context to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) WithDefaults

WithDefaults hydrates default values in the list global service revision pods params (not the query body).

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

func (*ListGlobalServiceRevisionPodsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) WithRevisionGeneration

func (o *ListGlobalServiceRevisionPodsParams) WithRevisionGeneration(revisionGeneration string) *ListGlobalServiceRevisionPodsParams

WithRevisionGeneration adds the revisionGeneration to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) WithServiceName

WithServiceName adds the serviceName to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) WithTimeout

WithTimeout adds the timeout to the list global service revision pods params

func (*ListGlobalServiceRevisionPodsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListGlobalServiceRevisionPodsReader

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

ListGlobalServiceRevisionPodsReader is a Reader for the ListGlobalServiceRevisionPods structure.

func (*ListGlobalServiceRevisionPodsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateGlobalServiceBody

type UpdateGlobalServiceBody struct {

	// cmd
	// Required: true
	Cmd *string `json:"cmd"`

	// Target image a service will use
	// Required: true
	Image *string `json:"image"`

	// Minimum amount of service pods to be live
	// Required: true
	MinScale *int64 `json:"minScale"`

	// Size of created service pods
	// Required: true
	// Enum: [small medium large]
	Size *string `json:"size"`

	// Traffic percentage new revision will use
	// Required: true
	TrafficPercent *int64 `json:"trafficPercent"`
}

UpdateGlobalServiceBody update global service body // Example: {"cmd":"","image":"direktiv/request:v10","minScale":"1","size":"small","trafficPercent":50} swagger:model UpdateGlobalServiceBody

func (*UpdateGlobalServiceBody) ContextValidate

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

ContextValidate validates this update global service body based on context it is used

func (*UpdateGlobalServiceBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateGlobalServiceBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateGlobalServiceBody) Validate

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

Validate validates this update global service body

type UpdateGlobalServiceOK

type UpdateGlobalServiceOK struct {
}
UpdateGlobalServiceOK describes a response with status code 200, with default header values.

successfully created service revision

func NewUpdateGlobalServiceOK

func NewUpdateGlobalServiceOK() *UpdateGlobalServiceOK

NewUpdateGlobalServiceOK creates a UpdateGlobalServiceOK with default headers values

func (*UpdateGlobalServiceOK) Error

func (o *UpdateGlobalServiceOK) Error() string

type UpdateGlobalServiceParams

type UpdateGlobalServiceParams struct {

	/* Service.

	   Payload that contains information on service revision
	*/
	Service UpdateGlobalServiceBody

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

UpdateGlobalServiceParams contains all the parameters to send to the API endpoint

for the update global service operation.

Typically these are written to a http.Request.

func NewUpdateGlobalServiceParams

func NewUpdateGlobalServiceParams() *UpdateGlobalServiceParams

NewUpdateGlobalServiceParams creates a new UpdateGlobalServiceParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateGlobalServiceParamsWithContext

func NewUpdateGlobalServiceParamsWithContext(ctx context.Context) *UpdateGlobalServiceParams

NewUpdateGlobalServiceParamsWithContext creates a new UpdateGlobalServiceParams object with the ability to set a context for a request.

func NewUpdateGlobalServiceParamsWithHTTPClient

func NewUpdateGlobalServiceParamsWithHTTPClient(client *http.Client) *UpdateGlobalServiceParams

NewUpdateGlobalServiceParamsWithHTTPClient creates a new UpdateGlobalServiceParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateGlobalServiceParamsWithTimeout

func NewUpdateGlobalServiceParamsWithTimeout(timeout time.Duration) *UpdateGlobalServiceParams

NewUpdateGlobalServiceParamsWithTimeout creates a new UpdateGlobalServiceParams object with the ability to set a timeout on a request.

func (*UpdateGlobalServiceParams) SetContext

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

SetContext adds the context to the update global service params

func (*UpdateGlobalServiceParams) SetDefaults

func (o *UpdateGlobalServiceParams) SetDefaults()

SetDefaults hydrates default values in the update global service params (not the query body).

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

func (*UpdateGlobalServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update global service params

func (*UpdateGlobalServiceParams) SetService

func (o *UpdateGlobalServiceParams) SetService(service UpdateGlobalServiceBody)

SetService adds the service to the update global service params

func (*UpdateGlobalServiceParams) SetServiceName

func (o *UpdateGlobalServiceParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the update global service params

func (*UpdateGlobalServiceParams) SetTimeout

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

SetTimeout adds the timeout to the update global service params

func (*UpdateGlobalServiceParams) WithContext

WithContext adds the context to the update global service params

func (*UpdateGlobalServiceParams) WithDefaults

WithDefaults hydrates default values in the update global service params (not the query body).

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

func (*UpdateGlobalServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update global service params

func (*UpdateGlobalServiceParams) WithService

WithService adds the service to the update global service params

func (*UpdateGlobalServiceParams) WithServiceName

func (o *UpdateGlobalServiceParams) WithServiceName(serviceName string) *UpdateGlobalServiceParams

WithServiceName adds the serviceName to the update global service params

func (*UpdateGlobalServiceParams) WithTimeout

WithTimeout adds the timeout to the update global service params

func (*UpdateGlobalServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateGlobalServiceReader

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

UpdateGlobalServiceReader is a Reader for the UpdateGlobalService structure.

func (*UpdateGlobalServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateGlobalServiceTrafficBody

type UpdateGlobalServiceTrafficBody struct {

	// List of revision traffic targets
	// Required: true
	Values []*UpdateGlobalServiceTrafficParamsBodyValuesItems0 `json:"values"`
}

UpdateGlobalServiceTrafficBody update global service traffic body // Example: {"values":[{"percent":60,"revision":"global-fast-request-00002"},{"percent":40,"revision":"global-fast-request-00001"}]} swagger:model UpdateGlobalServiceTrafficBody

func (*UpdateGlobalServiceTrafficBody) ContextValidate

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

ContextValidate validate this update global service traffic body based on the context it is used

func (*UpdateGlobalServiceTrafficBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateGlobalServiceTrafficBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateGlobalServiceTrafficBody) Validate

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

Validate validates this update global service traffic body

type UpdateGlobalServiceTrafficOK

type UpdateGlobalServiceTrafficOK struct {
}
UpdateGlobalServiceTrafficOK describes a response with status code 200, with default header values.

successfully updated service traffic

func NewUpdateGlobalServiceTrafficOK

func NewUpdateGlobalServiceTrafficOK() *UpdateGlobalServiceTrafficOK

NewUpdateGlobalServiceTrafficOK creates a UpdateGlobalServiceTrafficOK with default headers values

func (*UpdateGlobalServiceTrafficOK) Error

type UpdateGlobalServiceTrafficParams

type UpdateGlobalServiceTrafficParams struct {

	/* ServiceTraffic.

	   Payload that contains information on service traffic
	*/
	ServiceTraffic UpdateGlobalServiceTrafficBody

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

UpdateGlobalServiceTrafficParams contains all the parameters to send to the API endpoint

for the update global service traffic operation.

Typically these are written to a http.Request.

func NewUpdateGlobalServiceTrafficParams

func NewUpdateGlobalServiceTrafficParams() *UpdateGlobalServiceTrafficParams

NewUpdateGlobalServiceTrafficParams creates a new UpdateGlobalServiceTrafficParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateGlobalServiceTrafficParamsWithContext

func NewUpdateGlobalServiceTrafficParamsWithContext(ctx context.Context) *UpdateGlobalServiceTrafficParams

NewUpdateGlobalServiceTrafficParamsWithContext creates a new UpdateGlobalServiceTrafficParams object with the ability to set a context for a request.

func NewUpdateGlobalServiceTrafficParamsWithHTTPClient

func NewUpdateGlobalServiceTrafficParamsWithHTTPClient(client *http.Client) *UpdateGlobalServiceTrafficParams

NewUpdateGlobalServiceTrafficParamsWithHTTPClient creates a new UpdateGlobalServiceTrafficParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateGlobalServiceTrafficParamsWithTimeout

func NewUpdateGlobalServiceTrafficParamsWithTimeout(timeout time.Duration) *UpdateGlobalServiceTrafficParams

NewUpdateGlobalServiceTrafficParamsWithTimeout creates a new UpdateGlobalServiceTrafficParams object with the ability to set a timeout on a request.

func (*UpdateGlobalServiceTrafficParams) SetContext

SetContext adds the context to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) SetDefaults

func (o *UpdateGlobalServiceTrafficParams) SetDefaults()

SetDefaults hydrates default values in the update global service traffic params (not the query body).

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

func (*UpdateGlobalServiceTrafficParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) SetServiceName

func (o *UpdateGlobalServiceTrafficParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) SetServiceTraffic

func (o *UpdateGlobalServiceTrafficParams) SetServiceTraffic(serviceTraffic UpdateGlobalServiceTrafficBody)

SetServiceTraffic adds the serviceTraffic to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) SetTimeout

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

SetTimeout adds the timeout to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) WithContext

WithContext adds the context to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) WithDefaults

WithDefaults hydrates default values in the update global service traffic params (not the query body).

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

func (*UpdateGlobalServiceTrafficParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) WithServiceName

WithServiceName adds the serviceName to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) WithServiceTraffic

WithServiceTraffic adds the serviceTraffic to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) WithTimeout

WithTimeout adds the timeout to the update global service traffic params

func (*UpdateGlobalServiceTrafficParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateGlobalServiceTrafficParamsBodyValuesItems0

type UpdateGlobalServiceTrafficParamsBodyValuesItems0 struct {

	// Target traffice percentage
	Percent int64 `json:"percent,omitempty"`

	// Target service revision
	Revision string `json:"revision,omitempty"`
}

UpdateGlobalServiceTrafficParamsBodyValuesItems0 update global service traffic params body values items0 swagger:model UpdateGlobalServiceTrafficParamsBodyValuesItems0

func (*UpdateGlobalServiceTrafficParamsBodyValuesItems0) ContextValidate

ContextValidate validates this update global service traffic params body values items0 based on context it is used

func (*UpdateGlobalServiceTrafficParamsBodyValuesItems0) MarshalBinary

MarshalBinary interface implementation

func (*UpdateGlobalServiceTrafficParamsBodyValuesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*UpdateGlobalServiceTrafficParamsBodyValuesItems0) Validate

Validate validates this update global service traffic params body values items0

type UpdateGlobalServiceTrafficReader

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

UpdateGlobalServiceTrafficReader is a Reader for the UpdateGlobalServiceTraffic structure.

func (*UpdateGlobalServiceTrafficReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type WatchGlobalServiceRevisionListOK

type WatchGlobalServiceRevisionListOK struct {
}
WatchGlobalServiceRevisionListOK describes a response with status code 200, with default header values.

successfully watching service revisions

func NewWatchGlobalServiceRevisionListOK

func NewWatchGlobalServiceRevisionListOK() *WatchGlobalServiceRevisionListOK

NewWatchGlobalServiceRevisionListOK creates a WatchGlobalServiceRevisionListOK with default headers values

func (*WatchGlobalServiceRevisionListOK) Error

type WatchGlobalServiceRevisionListParams

type WatchGlobalServiceRevisionListParams struct {

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

WatchGlobalServiceRevisionListParams contains all the parameters to send to the API endpoint

for the watch global service revision list operation.

Typically these are written to a http.Request.

func NewWatchGlobalServiceRevisionListParams

func NewWatchGlobalServiceRevisionListParams() *WatchGlobalServiceRevisionListParams

NewWatchGlobalServiceRevisionListParams creates a new WatchGlobalServiceRevisionListParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewWatchGlobalServiceRevisionListParamsWithContext

func NewWatchGlobalServiceRevisionListParamsWithContext(ctx context.Context) *WatchGlobalServiceRevisionListParams

NewWatchGlobalServiceRevisionListParamsWithContext creates a new WatchGlobalServiceRevisionListParams object with the ability to set a context for a request.

func NewWatchGlobalServiceRevisionListParamsWithHTTPClient

func NewWatchGlobalServiceRevisionListParamsWithHTTPClient(client *http.Client) *WatchGlobalServiceRevisionListParams

NewWatchGlobalServiceRevisionListParamsWithHTTPClient creates a new WatchGlobalServiceRevisionListParams object with the ability to set a custom HTTPClient for a request.

func NewWatchGlobalServiceRevisionListParamsWithTimeout

func NewWatchGlobalServiceRevisionListParamsWithTimeout(timeout time.Duration) *WatchGlobalServiceRevisionListParams

NewWatchGlobalServiceRevisionListParamsWithTimeout creates a new WatchGlobalServiceRevisionListParams object with the ability to set a timeout on a request.

func (*WatchGlobalServiceRevisionListParams) SetContext

SetContext adds the context to the watch global service revision list params

func (*WatchGlobalServiceRevisionListParams) SetDefaults

func (o *WatchGlobalServiceRevisionListParams) SetDefaults()

SetDefaults hydrates default values in the watch global service revision list params (not the query body).

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

func (*WatchGlobalServiceRevisionListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the watch global service revision list params

func (*WatchGlobalServiceRevisionListParams) SetServiceName

func (o *WatchGlobalServiceRevisionListParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the watch global service revision list params

func (*WatchGlobalServiceRevisionListParams) SetTimeout

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

SetTimeout adds the timeout to the watch global service revision list params

func (*WatchGlobalServiceRevisionListParams) WithContext

WithContext adds the context to the watch global service revision list params

func (*WatchGlobalServiceRevisionListParams) WithDefaults

WithDefaults hydrates default values in the watch global service revision list params (not the query body).

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

func (*WatchGlobalServiceRevisionListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the watch global service revision list params

func (*WatchGlobalServiceRevisionListParams) WithServiceName

WithServiceName adds the serviceName to the watch global service revision list params

func (*WatchGlobalServiceRevisionListParams) WithTimeout

WithTimeout adds the timeout to the watch global service revision list params

func (*WatchGlobalServiceRevisionListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WatchGlobalServiceRevisionListReader

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

WatchGlobalServiceRevisionListReader is a Reader for the WatchGlobalServiceRevisionList structure.

func (*WatchGlobalServiceRevisionListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type WatchGlobalServiceRevisionOK

type WatchGlobalServiceRevisionOK struct {
}
WatchGlobalServiceRevisionOK describes a response with status code 200, with default header values.

successfully watching service revision

func NewWatchGlobalServiceRevisionOK

func NewWatchGlobalServiceRevisionOK() *WatchGlobalServiceRevisionOK

NewWatchGlobalServiceRevisionOK creates a WatchGlobalServiceRevisionOK with default headers values

func (*WatchGlobalServiceRevisionOK) Error

type WatchGlobalServiceRevisionParams

type WatchGlobalServiceRevisionParams struct {

	/* RevisionGeneration.

	   target revision generation
	*/
	RevisionGeneration string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

WatchGlobalServiceRevisionParams contains all the parameters to send to the API endpoint

for the watch global service revision operation.

Typically these are written to a http.Request.

func NewWatchGlobalServiceRevisionParams

func NewWatchGlobalServiceRevisionParams() *WatchGlobalServiceRevisionParams

NewWatchGlobalServiceRevisionParams creates a new WatchGlobalServiceRevisionParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewWatchGlobalServiceRevisionParamsWithContext

func NewWatchGlobalServiceRevisionParamsWithContext(ctx context.Context) *WatchGlobalServiceRevisionParams

NewWatchGlobalServiceRevisionParamsWithContext creates a new WatchGlobalServiceRevisionParams object with the ability to set a context for a request.

func NewWatchGlobalServiceRevisionParamsWithHTTPClient

func NewWatchGlobalServiceRevisionParamsWithHTTPClient(client *http.Client) *WatchGlobalServiceRevisionParams

NewWatchGlobalServiceRevisionParamsWithHTTPClient creates a new WatchGlobalServiceRevisionParams object with the ability to set a custom HTTPClient for a request.

func NewWatchGlobalServiceRevisionParamsWithTimeout

func NewWatchGlobalServiceRevisionParamsWithTimeout(timeout time.Duration) *WatchGlobalServiceRevisionParams

NewWatchGlobalServiceRevisionParamsWithTimeout creates a new WatchGlobalServiceRevisionParams object with the ability to set a timeout on a request.

func (*WatchGlobalServiceRevisionParams) SetContext

SetContext adds the context to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) SetDefaults

func (o *WatchGlobalServiceRevisionParams) SetDefaults()

SetDefaults hydrates default values in the watch global service revision params (not the query body).

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

func (*WatchGlobalServiceRevisionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) SetRevisionGeneration

func (o *WatchGlobalServiceRevisionParams) SetRevisionGeneration(revisionGeneration string)

SetRevisionGeneration adds the revisionGeneration to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) SetServiceName

func (o *WatchGlobalServiceRevisionParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) SetTimeout

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

SetTimeout adds the timeout to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) WithContext

WithContext adds the context to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) WithDefaults

WithDefaults hydrates default values in the watch global service revision params (not the query body).

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

func (*WatchGlobalServiceRevisionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) WithRevisionGeneration

func (o *WatchGlobalServiceRevisionParams) WithRevisionGeneration(revisionGeneration string) *WatchGlobalServiceRevisionParams

WithRevisionGeneration adds the revisionGeneration to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) WithServiceName

WithServiceName adds the serviceName to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) WithTimeout

WithTimeout adds the timeout to the watch global service revision params

func (*WatchGlobalServiceRevisionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WatchGlobalServiceRevisionReader

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

WatchGlobalServiceRevisionReader is a Reader for the WatchGlobalServiceRevision structure.

func (*WatchGlobalServiceRevisionReader) ReadResponse

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