namespace_services

package
v0.5.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

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

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

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

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

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

	// UpdateNamespaceServiceBodySizeLarge captures enum value "large"
	UpdateNamespaceServiceBodySizeLarge 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 namespace services API

func (*Client) CreateNamespaceService

func (a *Client) CreateNamespaceService(params *CreateNamespaceServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNamespaceServiceOK, error)
CreateNamespaceService creates namespace service

Creates namespace 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) DeleteNamespaceRevision

func (a *Client) DeleteNamespaceRevision(params *DeleteNamespaceRevisionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNamespaceRevisionOK, error)
DeleteNamespaceRevision deletes namespace service revision

Delete a namespace scoped knative service revision.

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

func (*Client) DeleteNamespaceService

func (a *Client) DeleteNamespaceService(params *DeleteNamespaceServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNamespaceServiceOK, error)

DeleteNamespaceService deletes namespace service

Deletes namespace scoped knative service and all its revisions.

func (*Client) GetNamespaceService

func (a *Client) GetNamespaceService(params *GetNamespaceServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespaceServiceOK, error)

GetNamespaceService gets namespace service details

Get details of a namespace scoped knative service.

func (*Client) GetNamespaceServiceList

func (a *Client) GetNamespaceServiceList(params *GetNamespaceServiceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespaceServiceListOK, error)

GetNamespaceServiceList gets namespace services list

Gets a list of namespace knative services.

func (*Client) ListNamespaceServiceRevisionPods

func (a *Client) ListNamespaceServiceRevisionPods(params *ListNamespaceServiceRevisionPodsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListNamespaceServiceRevisionPodsOK, error)
ListNamespaceServiceRevisionPods gets namespace service revision pods list

List a revisions pods of a namespace scoped knative service.

The target revision generation is the number suffix on a revision. Example: A revision named 'namespace-direktiv-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) UpdateNamespaceService

func (a *Client) UpdateNamespaceService(params *UpdateNamespaceServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateNamespaceServiceOK, error)
UpdateNamespaceService creates namespace service revision

Creates a new namespace 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) UpdateNamespaceServiceTraffic

func (a *Client) UpdateNamespaceServiceTraffic(params *UpdateNamespaceServiceTrafficParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateNamespaceServiceTrafficOK, error)
UpdateNamespaceServiceTraffic updates namespace service traffic

Update Namespace 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) WatchNamespaceServiceRevision

func (a *Client) WatchNamespaceServiceRevision(params *WatchNamespaceServiceRevisionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WatchNamespaceServiceRevisionOK, error)
WatchNamespaceServiceRevision watches namespace service revision

Watch a namespace scoped knative service revision.

The target revision generation is the number suffix on a revision. Example: A revision named 'namespace-direktiv-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) WatchNamespaceServiceRevisionList

func (a *Client) WatchNamespaceServiceRevisionList(params *WatchNamespaceServiceRevisionListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WatchNamespaceServiceRevisionListOK, error)
WatchNamespaceServiceRevisionList watches namespace service revision list

Watch the revision list of a namespace 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 {
	CreateNamespaceService(params *CreateNamespaceServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNamespaceServiceOK, error)

	DeleteNamespaceRevision(params *DeleteNamespaceRevisionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNamespaceRevisionOK, error)

	DeleteNamespaceService(params *DeleteNamespaceServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNamespaceServiceOK, error)

	GetNamespaceService(params *GetNamespaceServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespaceServiceOK, error)

	GetNamespaceServiceList(params *GetNamespaceServiceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespaceServiceListOK, error)

	ListNamespaceServiceRevisionPods(params *ListNamespaceServiceRevisionPodsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListNamespaceServiceRevisionPodsOK, error)

	UpdateNamespaceService(params *UpdateNamespaceServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateNamespaceServiceOK, error)

	UpdateNamespaceServiceTraffic(params *UpdateNamespaceServiceTrafficParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateNamespaceServiceTrafficOK, error)

	WatchNamespaceServiceRevision(params *WatchNamespaceServiceRevisionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WatchNamespaceServiceRevisionOK, error)

	WatchNamespaceServiceRevisionList(params *WatchNamespaceServiceRevisionListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WatchNamespaceServiceRevisionListOK, 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 namespace services API client.

type CreateNamespaceServiceBody

type CreateNamespaceServiceBody 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"`
}

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

func (*CreateNamespaceServiceBody) ContextValidate

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

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

func (*CreateNamespaceServiceBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateNamespaceServiceBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateNamespaceServiceBody) Validate

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

Validate validates this create namespace service body

type CreateNamespaceServiceOK

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

successfully created service

func NewCreateNamespaceServiceOK

func NewCreateNamespaceServiceOK() *CreateNamespaceServiceOK

NewCreateNamespaceServiceOK creates a CreateNamespaceServiceOK with default headers values

func (*CreateNamespaceServiceOK) Error

func (o *CreateNamespaceServiceOK) Error() string

type CreateNamespaceServiceParams

type CreateNamespaceServiceParams struct {

	/* Service.

	   Payload that contains information on new service
	*/
	Service CreateNamespaceServiceBody

	/* Namespace.

	   target namespace
	*/
	Namespace string

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

CreateNamespaceServiceParams contains all the parameters to send to the API endpoint

for the create namespace service operation.

Typically these are written to a http.Request.

func NewCreateNamespaceServiceParams

func NewCreateNamespaceServiceParams() *CreateNamespaceServiceParams

NewCreateNamespaceServiceParams creates a new CreateNamespaceServiceParams 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 NewCreateNamespaceServiceParamsWithContext

func NewCreateNamespaceServiceParamsWithContext(ctx context.Context) *CreateNamespaceServiceParams

NewCreateNamespaceServiceParamsWithContext creates a new CreateNamespaceServiceParams object with the ability to set a context for a request.

func NewCreateNamespaceServiceParamsWithHTTPClient

func NewCreateNamespaceServiceParamsWithHTTPClient(client *http.Client) *CreateNamespaceServiceParams

NewCreateNamespaceServiceParamsWithHTTPClient creates a new CreateNamespaceServiceParams object with the ability to set a custom HTTPClient for a request.

func NewCreateNamespaceServiceParamsWithTimeout

func NewCreateNamespaceServiceParamsWithTimeout(timeout time.Duration) *CreateNamespaceServiceParams

NewCreateNamespaceServiceParamsWithTimeout creates a new CreateNamespaceServiceParams object with the ability to set a timeout on a request.

func (*CreateNamespaceServiceParams) SetContext

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

SetContext adds the context to the create namespace service params

func (*CreateNamespaceServiceParams) SetDefaults

func (o *CreateNamespaceServiceParams) SetDefaults()

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

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

func (*CreateNamespaceServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create namespace service params

func (*CreateNamespaceServiceParams) SetNamespace

func (o *CreateNamespaceServiceParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create namespace service params

func (*CreateNamespaceServiceParams) SetService

SetService adds the service to the create namespace service params

func (*CreateNamespaceServiceParams) SetTimeout

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

SetTimeout adds the timeout to the create namespace service params

func (*CreateNamespaceServiceParams) WithContext

WithContext adds the context to the create namespace service params

func (*CreateNamespaceServiceParams) WithDefaults

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

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

func (*CreateNamespaceServiceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create namespace service params

func (*CreateNamespaceServiceParams) WithNamespace

WithNamespace adds the namespace to the create namespace service params

func (*CreateNamespaceServiceParams) WithService

WithService adds the service to the create namespace service params

func (*CreateNamespaceServiceParams) WithTimeout

WithTimeout adds the timeout to the create namespace service params

func (*CreateNamespaceServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateNamespaceServiceReader

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

CreateNamespaceServiceReader is a Reader for the CreateNamespaceService structure.

func (*CreateNamespaceServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteNamespaceRevisionOK

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

successfully deleted service revision

func NewDeleteNamespaceRevisionOK

func NewDeleteNamespaceRevisionOK() *DeleteNamespaceRevisionOK

NewDeleteNamespaceRevisionOK creates a DeleteNamespaceRevisionOK with default headers values

func (*DeleteNamespaceRevisionOK) Error

func (o *DeleteNamespaceRevisionOK) Error() string

type DeleteNamespaceRevisionParams

type DeleteNamespaceRevisionParams struct {

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* RevisionGeneration.

	   target revision generation
	*/
	RevisionGeneration string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

DeleteNamespaceRevisionParams contains all the parameters to send to the API endpoint

for the delete namespace revision operation.

Typically these are written to a http.Request.

func NewDeleteNamespaceRevisionParams

func NewDeleteNamespaceRevisionParams() *DeleteNamespaceRevisionParams

NewDeleteNamespaceRevisionParams creates a new DeleteNamespaceRevisionParams 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 NewDeleteNamespaceRevisionParamsWithContext

func NewDeleteNamespaceRevisionParamsWithContext(ctx context.Context) *DeleteNamespaceRevisionParams

NewDeleteNamespaceRevisionParamsWithContext creates a new DeleteNamespaceRevisionParams object with the ability to set a context for a request.

func NewDeleteNamespaceRevisionParamsWithHTTPClient

func NewDeleteNamespaceRevisionParamsWithHTTPClient(client *http.Client) *DeleteNamespaceRevisionParams

NewDeleteNamespaceRevisionParamsWithHTTPClient creates a new DeleteNamespaceRevisionParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteNamespaceRevisionParamsWithTimeout

func NewDeleteNamespaceRevisionParamsWithTimeout(timeout time.Duration) *DeleteNamespaceRevisionParams

NewDeleteNamespaceRevisionParamsWithTimeout creates a new DeleteNamespaceRevisionParams object with the ability to set a timeout on a request.

func (*DeleteNamespaceRevisionParams) SetContext

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

SetContext adds the context to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) SetDefaults

func (o *DeleteNamespaceRevisionParams) SetDefaults()

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

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

func (*DeleteNamespaceRevisionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) SetNamespace

func (o *DeleteNamespaceRevisionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) SetRevisionGeneration

func (o *DeleteNamespaceRevisionParams) SetRevisionGeneration(revisionGeneration string)

SetRevisionGeneration adds the revisionGeneration to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) SetServiceName

func (o *DeleteNamespaceRevisionParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) SetTimeout

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

SetTimeout adds the timeout to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) WithContext

WithContext adds the context to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) WithDefaults

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

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

func (*DeleteNamespaceRevisionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) WithNamespace

WithNamespace adds the namespace to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) WithRevisionGeneration

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

WithRevisionGeneration adds the revisionGeneration to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) WithServiceName

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

WithServiceName adds the serviceName to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) WithTimeout

WithTimeout adds the timeout to the delete namespace revision params

func (*DeleteNamespaceRevisionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteNamespaceRevisionReader

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

DeleteNamespaceRevisionReader is a Reader for the DeleteNamespaceRevision structure.

func (*DeleteNamespaceRevisionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteNamespaceServiceOK

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

successfully deleted service

func NewDeleteNamespaceServiceOK

func NewDeleteNamespaceServiceOK() *DeleteNamespaceServiceOK

NewDeleteNamespaceServiceOK creates a DeleteNamespaceServiceOK with default headers values

func (*DeleteNamespaceServiceOK) Error

func (o *DeleteNamespaceServiceOK) Error() string

type DeleteNamespaceServiceParams

type DeleteNamespaceServiceParams struct {

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

DeleteNamespaceServiceParams contains all the parameters to send to the API endpoint

for the delete namespace service operation.

Typically these are written to a http.Request.

func NewDeleteNamespaceServiceParams

func NewDeleteNamespaceServiceParams() *DeleteNamespaceServiceParams

NewDeleteNamespaceServiceParams creates a new DeleteNamespaceServiceParams 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 NewDeleteNamespaceServiceParamsWithContext

func NewDeleteNamespaceServiceParamsWithContext(ctx context.Context) *DeleteNamespaceServiceParams

NewDeleteNamespaceServiceParamsWithContext creates a new DeleteNamespaceServiceParams object with the ability to set a context for a request.

func NewDeleteNamespaceServiceParamsWithHTTPClient

func NewDeleteNamespaceServiceParamsWithHTTPClient(client *http.Client) *DeleteNamespaceServiceParams

NewDeleteNamespaceServiceParamsWithHTTPClient creates a new DeleteNamespaceServiceParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteNamespaceServiceParamsWithTimeout

func NewDeleteNamespaceServiceParamsWithTimeout(timeout time.Duration) *DeleteNamespaceServiceParams

NewDeleteNamespaceServiceParamsWithTimeout creates a new DeleteNamespaceServiceParams object with the ability to set a timeout on a request.

func (*DeleteNamespaceServiceParams) SetContext

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

SetContext adds the context to the delete namespace service params

func (*DeleteNamespaceServiceParams) SetDefaults

func (o *DeleteNamespaceServiceParams) SetDefaults()

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

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

func (*DeleteNamespaceServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete namespace service params

func (*DeleteNamespaceServiceParams) SetNamespace

func (o *DeleteNamespaceServiceParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete namespace service params

func (*DeleteNamespaceServiceParams) SetServiceName

func (o *DeleteNamespaceServiceParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the delete namespace service params

func (*DeleteNamespaceServiceParams) SetTimeout

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

SetTimeout adds the timeout to the delete namespace service params

func (*DeleteNamespaceServiceParams) WithContext

WithContext adds the context to the delete namespace service params

func (*DeleteNamespaceServiceParams) WithDefaults

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

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

func (*DeleteNamespaceServiceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete namespace service params

func (*DeleteNamespaceServiceParams) WithNamespace

WithNamespace adds the namespace to the delete namespace service params

func (*DeleteNamespaceServiceParams) WithServiceName

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

WithServiceName adds the serviceName to the delete namespace service params

func (*DeleteNamespaceServiceParams) WithTimeout

WithTimeout adds the timeout to the delete namespace service params

func (*DeleteNamespaceServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteNamespaceServiceReader

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

DeleteNamespaceServiceReader is a Reader for the DeleteNamespaceService structure.

func (*DeleteNamespaceServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNamespaceServiceListOK

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

successfully got services list

func NewGetNamespaceServiceListOK

func NewGetNamespaceServiceListOK() *GetNamespaceServiceListOK

NewGetNamespaceServiceListOK creates a GetNamespaceServiceListOK with default headers values

func (*GetNamespaceServiceListOK) Error

func (o *GetNamespaceServiceListOK) Error() string

type GetNamespaceServiceListParams

type GetNamespaceServiceListParams struct {

	/* Namespace.

	   target namespace
	*/
	Namespace string

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

GetNamespaceServiceListParams contains all the parameters to send to the API endpoint

for the get namespace service list operation.

Typically these are written to a http.Request.

func NewGetNamespaceServiceListParams

func NewGetNamespaceServiceListParams() *GetNamespaceServiceListParams

NewGetNamespaceServiceListParams creates a new GetNamespaceServiceListParams 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 NewGetNamespaceServiceListParamsWithContext

func NewGetNamespaceServiceListParamsWithContext(ctx context.Context) *GetNamespaceServiceListParams

NewGetNamespaceServiceListParamsWithContext creates a new GetNamespaceServiceListParams object with the ability to set a context for a request.

func NewGetNamespaceServiceListParamsWithHTTPClient

func NewGetNamespaceServiceListParamsWithHTTPClient(client *http.Client) *GetNamespaceServiceListParams

NewGetNamespaceServiceListParamsWithHTTPClient creates a new GetNamespaceServiceListParams object with the ability to set a custom HTTPClient for a request.

func NewGetNamespaceServiceListParamsWithTimeout

func NewGetNamespaceServiceListParamsWithTimeout(timeout time.Duration) *GetNamespaceServiceListParams

NewGetNamespaceServiceListParamsWithTimeout creates a new GetNamespaceServiceListParams object with the ability to set a timeout on a request.

func (*GetNamespaceServiceListParams) SetContext

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

SetContext adds the context to the get namespace service list params

func (*GetNamespaceServiceListParams) SetDefaults

func (o *GetNamespaceServiceListParams) SetDefaults()

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

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

func (*GetNamespaceServiceListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get namespace service list params

func (*GetNamespaceServiceListParams) SetNamespace

func (o *GetNamespaceServiceListParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get namespace service list params

func (*GetNamespaceServiceListParams) SetTimeout

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

SetTimeout adds the timeout to the get namespace service list params

func (*GetNamespaceServiceListParams) WithContext

WithContext adds the context to the get namespace service list params

func (*GetNamespaceServiceListParams) WithDefaults

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

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

func (*GetNamespaceServiceListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get namespace service list params

func (*GetNamespaceServiceListParams) WithNamespace

WithNamespace adds the namespace to the get namespace service list params

func (*GetNamespaceServiceListParams) WithTimeout

WithTimeout adds the timeout to the get namespace service list params

func (*GetNamespaceServiceListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNamespaceServiceListReader

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

GetNamespaceServiceListReader is a Reader for the GetNamespaceServiceList structure.

func (*GetNamespaceServiceListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNamespaceServiceOK

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

successfully got service details

func NewGetNamespaceServiceOK

func NewGetNamespaceServiceOK() *GetNamespaceServiceOK

NewGetNamespaceServiceOK creates a GetNamespaceServiceOK with default headers values

func (*GetNamespaceServiceOK) Error

func (o *GetNamespaceServiceOK) Error() string

type GetNamespaceServiceParams

type GetNamespaceServiceParams struct {

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

GetNamespaceServiceParams contains all the parameters to send to the API endpoint

for the get namespace service operation.

Typically these are written to a http.Request.

func NewGetNamespaceServiceParams

func NewGetNamespaceServiceParams() *GetNamespaceServiceParams

NewGetNamespaceServiceParams creates a new GetNamespaceServiceParams 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 NewGetNamespaceServiceParamsWithContext

func NewGetNamespaceServiceParamsWithContext(ctx context.Context) *GetNamespaceServiceParams

NewGetNamespaceServiceParamsWithContext creates a new GetNamespaceServiceParams object with the ability to set a context for a request.

func NewGetNamespaceServiceParamsWithHTTPClient

func NewGetNamespaceServiceParamsWithHTTPClient(client *http.Client) *GetNamespaceServiceParams

NewGetNamespaceServiceParamsWithHTTPClient creates a new GetNamespaceServiceParams object with the ability to set a custom HTTPClient for a request.

func NewGetNamespaceServiceParamsWithTimeout

func NewGetNamespaceServiceParamsWithTimeout(timeout time.Duration) *GetNamespaceServiceParams

NewGetNamespaceServiceParamsWithTimeout creates a new GetNamespaceServiceParams object with the ability to set a timeout on a request.

func (*GetNamespaceServiceParams) SetContext

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

SetContext adds the context to the get namespace service params

func (*GetNamespaceServiceParams) SetDefaults

func (o *GetNamespaceServiceParams) SetDefaults()

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

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

func (*GetNamespaceServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get namespace service params

func (*GetNamespaceServiceParams) SetNamespace

func (o *GetNamespaceServiceParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get namespace service params

func (*GetNamespaceServiceParams) SetServiceName

func (o *GetNamespaceServiceParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the get namespace service params

func (*GetNamespaceServiceParams) SetTimeout

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

SetTimeout adds the timeout to the get namespace service params

func (*GetNamespaceServiceParams) WithContext

WithContext adds the context to the get namespace service params

func (*GetNamespaceServiceParams) WithDefaults

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

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

func (*GetNamespaceServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get namespace service params

func (*GetNamespaceServiceParams) WithNamespace

func (o *GetNamespaceServiceParams) WithNamespace(namespace string) *GetNamespaceServiceParams

WithNamespace adds the namespace to the get namespace service params

func (*GetNamespaceServiceParams) WithServiceName

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

WithServiceName adds the serviceName to the get namespace service params

func (*GetNamespaceServiceParams) WithTimeout

WithTimeout adds the timeout to the get namespace service params

func (*GetNamespaceServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNamespaceServiceReader

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

GetNamespaceServiceReader is a Reader for the GetNamespaceService structure.

func (*GetNamespaceServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListNamespaceServiceRevisionPodsOK

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

successfully got list of a service revision pods

func NewListNamespaceServiceRevisionPodsOK

func NewListNamespaceServiceRevisionPodsOK() *ListNamespaceServiceRevisionPodsOK

NewListNamespaceServiceRevisionPodsOK creates a ListNamespaceServiceRevisionPodsOK with default headers values

func (*ListNamespaceServiceRevisionPodsOK) Error

type ListNamespaceServiceRevisionPodsParams

type ListNamespaceServiceRevisionPodsParams struct {

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* RevisionGeneration.

	   target revision generation
	*/
	RevisionGeneration string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

ListNamespaceServiceRevisionPodsParams contains all the parameters to send to the API endpoint

for the list namespace service revision pods operation.

Typically these are written to a http.Request.

func NewListNamespaceServiceRevisionPodsParams

func NewListNamespaceServiceRevisionPodsParams() *ListNamespaceServiceRevisionPodsParams

NewListNamespaceServiceRevisionPodsParams creates a new ListNamespaceServiceRevisionPodsParams 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 NewListNamespaceServiceRevisionPodsParamsWithContext

func NewListNamespaceServiceRevisionPodsParamsWithContext(ctx context.Context) *ListNamespaceServiceRevisionPodsParams

NewListNamespaceServiceRevisionPodsParamsWithContext creates a new ListNamespaceServiceRevisionPodsParams object with the ability to set a context for a request.

func NewListNamespaceServiceRevisionPodsParamsWithHTTPClient

func NewListNamespaceServiceRevisionPodsParamsWithHTTPClient(client *http.Client) *ListNamespaceServiceRevisionPodsParams

NewListNamespaceServiceRevisionPodsParamsWithHTTPClient creates a new ListNamespaceServiceRevisionPodsParams object with the ability to set a custom HTTPClient for a request.

func NewListNamespaceServiceRevisionPodsParamsWithTimeout

func NewListNamespaceServiceRevisionPodsParamsWithTimeout(timeout time.Duration) *ListNamespaceServiceRevisionPodsParams

NewListNamespaceServiceRevisionPodsParamsWithTimeout creates a new ListNamespaceServiceRevisionPodsParams object with the ability to set a timeout on a request.

func (*ListNamespaceServiceRevisionPodsParams) SetContext

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

func (*ListNamespaceServiceRevisionPodsParams) SetDefaults

func (o *ListNamespaceServiceRevisionPodsParams) SetDefaults()

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

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

func (*ListNamespaceServiceRevisionPodsParams) SetHTTPClient

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

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

func (*ListNamespaceServiceRevisionPodsParams) SetNamespace

func (o *ListNamespaceServiceRevisionPodsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the list namespace service revision pods params

func (*ListNamespaceServiceRevisionPodsParams) SetRevisionGeneration

func (o *ListNamespaceServiceRevisionPodsParams) SetRevisionGeneration(revisionGeneration string)

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

func (*ListNamespaceServiceRevisionPodsParams) SetServiceName

func (o *ListNamespaceServiceRevisionPodsParams) SetServiceName(serviceName string)

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

func (*ListNamespaceServiceRevisionPodsParams) SetTimeout

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

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

func (*ListNamespaceServiceRevisionPodsParams) WithContext

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

func (*ListNamespaceServiceRevisionPodsParams) WithDefaults

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

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

func (*ListNamespaceServiceRevisionPodsParams) WithHTTPClient

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

func (*ListNamespaceServiceRevisionPodsParams) WithNamespace

WithNamespace adds the namespace to the list namespace service revision pods params

func (*ListNamespaceServiceRevisionPodsParams) WithRevisionGeneration

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

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

func (*ListNamespaceServiceRevisionPodsParams) WithServiceName

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

func (*ListNamespaceServiceRevisionPodsParams) WithTimeout

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

func (*ListNamespaceServiceRevisionPodsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListNamespaceServiceRevisionPodsReader

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

ListNamespaceServiceRevisionPodsReader is a Reader for the ListNamespaceServiceRevisionPods structure.

func (*ListNamespaceServiceRevisionPodsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateNamespaceServiceBody

type UpdateNamespaceServiceBody 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"`
}

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

func (*UpdateNamespaceServiceBody) ContextValidate

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

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

func (*UpdateNamespaceServiceBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateNamespaceServiceBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateNamespaceServiceBody) Validate

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

Validate validates this update namespace service body

type UpdateNamespaceServiceOK

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

successfully created service revision

func NewUpdateNamespaceServiceOK

func NewUpdateNamespaceServiceOK() *UpdateNamespaceServiceOK

NewUpdateNamespaceServiceOK creates a UpdateNamespaceServiceOK with default headers values

func (*UpdateNamespaceServiceOK) Error

func (o *UpdateNamespaceServiceOK) Error() string

type UpdateNamespaceServiceParams

type UpdateNamespaceServiceParams struct {

	/* Service.

	   Payload that contains information on service revision
	*/
	Service UpdateNamespaceServiceBody

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

UpdateNamespaceServiceParams contains all the parameters to send to the API endpoint

for the update namespace service operation.

Typically these are written to a http.Request.

func NewUpdateNamespaceServiceParams

func NewUpdateNamespaceServiceParams() *UpdateNamespaceServiceParams

NewUpdateNamespaceServiceParams creates a new UpdateNamespaceServiceParams 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 NewUpdateNamespaceServiceParamsWithContext

func NewUpdateNamespaceServiceParamsWithContext(ctx context.Context) *UpdateNamespaceServiceParams

NewUpdateNamespaceServiceParamsWithContext creates a new UpdateNamespaceServiceParams object with the ability to set a context for a request.

func NewUpdateNamespaceServiceParamsWithHTTPClient

func NewUpdateNamespaceServiceParamsWithHTTPClient(client *http.Client) *UpdateNamespaceServiceParams

NewUpdateNamespaceServiceParamsWithHTTPClient creates a new UpdateNamespaceServiceParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateNamespaceServiceParamsWithTimeout

func NewUpdateNamespaceServiceParamsWithTimeout(timeout time.Duration) *UpdateNamespaceServiceParams

NewUpdateNamespaceServiceParamsWithTimeout creates a new UpdateNamespaceServiceParams object with the ability to set a timeout on a request.

func (*UpdateNamespaceServiceParams) SetContext

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

SetContext adds the context to the update namespace service params

func (*UpdateNamespaceServiceParams) SetDefaults

func (o *UpdateNamespaceServiceParams) SetDefaults()

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

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

func (*UpdateNamespaceServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update namespace service params

func (*UpdateNamespaceServiceParams) SetNamespace

func (o *UpdateNamespaceServiceParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update namespace service params

func (*UpdateNamespaceServiceParams) SetService

SetService adds the service to the update namespace service params

func (*UpdateNamespaceServiceParams) SetServiceName

func (o *UpdateNamespaceServiceParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the update namespace service params

func (*UpdateNamespaceServiceParams) SetTimeout

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

SetTimeout adds the timeout to the update namespace service params

func (*UpdateNamespaceServiceParams) WithContext

WithContext adds the context to the update namespace service params

func (*UpdateNamespaceServiceParams) WithDefaults

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

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

func (*UpdateNamespaceServiceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update namespace service params

func (*UpdateNamespaceServiceParams) WithNamespace

WithNamespace adds the namespace to the update namespace service params

func (*UpdateNamespaceServiceParams) WithService

WithService adds the service to the update namespace service params

func (*UpdateNamespaceServiceParams) WithServiceName

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

WithServiceName adds the serviceName to the update namespace service params

func (*UpdateNamespaceServiceParams) WithTimeout

WithTimeout adds the timeout to the update namespace service params

func (*UpdateNamespaceServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateNamespaceServiceReader

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

UpdateNamespaceServiceReader is a Reader for the UpdateNamespaceService structure.

func (*UpdateNamespaceServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateNamespaceServiceTrafficBody

type UpdateNamespaceServiceTrafficBody struct {

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

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

func (*UpdateNamespaceServiceTrafficBody) ContextValidate

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

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

func (*UpdateNamespaceServiceTrafficBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateNamespaceServiceTrafficBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateNamespaceServiceTrafficBody) Validate

Validate validates this update namespace service traffic body

type UpdateNamespaceServiceTrafficOK

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

successfully updated service traffic

func NewUpdateNamespaceServiceTrafficOK

func NewUpdateNamespaceServiceTrafficOK() *UpdateNamespaceServiceTrafficOK

NewUpdateNamespaceServiceTrafficOK creates a UpdateNamespaceServiceTrafficOK with default headers values

func (*UpdateNamespaceServiceTrafficOK) Error

type UpdateNamespaceServiceTrafficParams

type UpdateNamespaceServiceTrafficParams struct {

	/* ServiceTraffic.

	   Payload that contains information on service traffic
	*/
	ServiceTraffic UpdateNamespaceServiceTrafficBody

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

UpdateNamespaceServiceTrafficParams contains all the parameters to send to the API endpoint

for the update namespace service traffic operation.

Typically these are written to a http.Request.

func NewUpdateNamespaceServiceTrafficParams

func NewUpdateNamespaceServiceTrafficParams() *UpdateNamespaceServiceTrafficParams

NewUpdateNamespaceServiceTrafficParams creates a new UpdateNamespaceServiceTrafficParams 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 NewUpdateNamespaceServiceTrafficParamsWithContext

func NewUpdateNamespaceServiceTrafficParamsWithContext(ctx context.Context) *UpdateNamespaceServiceTrafficParams

NewUpdateNamespaceServiceTrafficParamsWithContext creates a new UpdateNamespaceServiceTrafficParams object with the ability to set a context for a request.

func NewUpdateNamespaceServiceTrafficParamsWithHTTPClient

func NewUpdateNamespaceServiceTrafficParamsWithHTTPClient(client *http.Client) *UpdateNamespaceServiceTrafficParams

NewUpdateNamespaceServiceTrafficParamsWithHTTPClient creates a new UpdateNamespaceServiceTrafficParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateNamespaceServiceTrafficParamsWithTimeout

func NewUpdateNamespaceServiceTrafficParamsWithTimeout(timeout time.Duration) *UpdateNamespaceServiceTrafficParams

NewUpdateNamespaceServiceTrafficParamsWithTimeout creates a new UpdateNamespaceServiceTrafficParams object with the ability to set a timeout on a request.

func (*UpdateNamespaceServiceTrafficParams) SetContext

SetContext adds the context to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) SetDefaults

func (o *UpdateNamespaceServiceTrafficParams) SetDefaults()

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

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

func (*UpdateNamespaceServiceTrafficParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) SetNamespace

func (o *UpdateNamespaceServiceTrafficParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) SetServiceName

func (o *UpdateNamespaceServiceTrafficParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) SetServiceTraffic

func (o *UpdateNamespaceServiceTrafficParams) SetServiceTraffic(serviceTraffic UpdateNamespaceServiceTrafficBody)

SetServiceTraffic adds the serviceTraffic to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) SetTimeout

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

SetTimeout adds the timeout to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) WithContext

WithContext adds the context to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) WithDefaults

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

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

func (*UpdateNamespaceServiceTrafficParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) WithNamespace

WithNamespace adds the namespace to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) WithServiceName

WithServiceName adds the serviceName to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) WithServiceTraffic

WithServiceTraffic adds the serviceTraffic to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) WithTimeout

WithTimeout adds the timeout to the update namespace service traffic params

func (*UpdateNamespaceServiceTrafficParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateNamespaceServiceTrafficParamsBodyValuesItems0

type UpdateNamespaceServiceTrafficParamsBodyValuesItems0 struct {

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

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

UpdateNamespaceServiceTrafficParamsBodyValuesItems0 update namespace service traffic params body values items0 swagger:model UpdateNamespaceServiceTrafficParamsBodyValuesItems0

func (*UpdateNamespaceServiceTrafficParamsBodyValuesItems0) ContextValidate

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

func (*UpdateNamespaceServiceTrafficParamsBodyValuesItems0) MarshalBinary

MarshalBinary interface implementation

func (*UpdateNamespaceServiceTrafficParamsBodyValuesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*UpdateNamespaceServiceTrafficParamsBodyValuesItems0) Validate

Validate validates this update namespace service traffic params body values items0

type UpdateNamespaceServiceTrafficReader

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

UpdateNamespaceServiceTrafficReader is a Reader for the UpdateNamespaceServiceTraffic structure.

func (*UpdateNamespaceServiceTrafficReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type WatchNamespaceServiceRevisionListOK

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

successfully watching service revisions

func NewWatchNamespaceServiceRevisionListOK

func NewWatchNamespaceServiceRevisionListOK() *WatchNamespaceServiceRevisionListOK

NewWatchNamespaceServiceRevisionListOK creates a WatchNamespaceServiceRevisionListOK with default headers values

func (*WatchNamespaceServiceRevisionListOK) Error

type WatchNamespaceServiceRevisionListParams

type WatchNamespaceServiceRevisionListParams struct {

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

WatchNamespaceServiceRevisionListParams contains all the parameters to send to the API endpoint

for the watch namespace service revision list operation.

Typically these are written to a http.Request.

func NewWatchNamespaceServiceRevisionListParams

func NewWatchNamespaceServiceRevisionListParams() *WatchNamespaceServiceRevisionListParams

NewWatchNamespaceServiceRevisionListParams creates a new WatchNamespaceServiceRevisionListParams 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 NewWatchNamespaceServiceRevisionListParamsWithContext

func NewWatchNamespaceServiceRevisionListParamsWithContext(ctx context.Context) *WatchNamespaceServiceRevisionListParams

NewWatchNamespaceServiceRevisionListParamsWithContext creates a new WatchNamespaceServiceRevisionListParams object with the ability to set a context for a request.

func NewWatchNamespaceServiceRevisionListParamsWithHTTPClient

func NewWatchNamespaceServiceRevisionListParamsWithHTTPClient(client *http.Client) *WatchNamespaceServiceRevisionListParams

NewWatchNamespaceServiceRevisionListParamsWithHTTPClient creates a new WatchNamespaceServiceRevisionListParams object with the ability to set a custom HTTPClient for a request.

func NewWatchNamespaceServiceRevisionListParamsWithTimeout

func NewWatchNamespaceServiceRevisionListParamsWithTimeout(timeout time.Duration) *WatchNamespaceServiceRevisionListParams

NewWatchNamespaceServiceRevisionListParamsWithTimeout creates a new WatchNamespaceServiceRevisionListParams object with the ability to set a timeout on a request.

func (*WatchNamespaceServiceRevisionListParams) SetContext

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

func (*WatchNamespaceServiceRevisionListParams) SetDefaults

func (o *WatchNamespaceServiceRevisionListParams) SetDefaults()

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

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

func (*WatchNamespaceServiceRevisionListParams) SetHTTPClient

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

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

func (*WatchNamespaceServiceRevisionListParams) SetNamespace

func (o *WatchNamespaceServiceRevisionListParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the watch namespace service revision list params

func (*WatchNamespaceServiceRevisionListParams) SetServiceName

func (o *WatchNamespaceServiceRevisionListParams) SetServiceName(serviceName string)

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

func (*WatchNamespaceServiceRevisionListParams) SetTimeout

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

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

func (*WatchNamespaceServiceRevisionListParams) WithContext

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

func (*WatchNamespaceServiceRevisionListParams) WithDefaults

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

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

func (*WatchNamespaceServiceRevisionListParams) WithHTTPClient

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

func (*WatchNamespaceServiceRevisionListParams) WithNamespace

WithNamespace adds the namespace to the watch namespace service revision list params

func (*WatchNamespaceServiceRevisionListParams) WithServiceName

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

func (*WatchNamespaceServiceRevisionListParams) WithTimeout

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

func (*WatchNamespaceServiceRevisionListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WatchNamespaceServiceRevisionListReader

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

WatchNamespaceServiceRevisionListReader is a Reader for the WatchNamespaceServiceRevisionList structure.

func (*WatchNamespaceServiceRevisionListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type WatchNamespaceServiceRevisionOK

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

successfully watching service revision

func NewWatchNamespaceServiceRevisionOK

func NewWatchNamespaceServiceRevisionOK() *WatchNamespaceServiceRevisionOK

NewWatchNamespaceServiceRevisionOK creates a WatchNamespaceServiceRevisionOK with default headers values

func (*WatchNamespaceServiceRevisionOK) Error

type WatchNamespaceServiceRevisionParams

type WatchNamespaceServiceRevisionParams struct {

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* RevisionGeneration.

	   target revision generation
	*/
	RevisionGeneration string

	/* ServiceName.

	   target service name
	*/
	ServiceName string

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

WatchNamespaceServiceRevisionParams contains all the parameters to send to the API endpoint

for the watch namespace service revision operation.

Typically these are written to a http.Request.

func NewWatchNamespaceServiceRevisionParams

func NewWatchNamespaceServiceRevisionParams() *WatchNamespaceServiceRevisionParams

NewWatchNamespaceServiceRevisionParams creates a new WatchNamespaceServiceRevisionParams 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 NewWatchNamespaceServiceRevisionParamsWithContext

func NewWatchNamespaceServiceRevisionParamsWithContext(ctx context.Context) *WatchNamespaceServiceRevisionParams

NewWatchNamespaceServiceRevisionParamsWithContext creates a new WatchNamespaceServiceRevisionParams object with the ability to set a context for a request.

func NewWatchNamespaceServiceRevisionParamsWithHTTPClient

func NewWatchNamespaceServiceRevisionParamsWithHTTPClient(client *http.Client) *WatchNamespaceServiceRevisionParams

NewWatchNamespaceServiceRevisionParamsWithHTTPClient creates a new WatchNamespaceServiceRevisionParams object with the ability to set a custom HTTPClient for a request.

func NewWatchNamespaceServiceRevisionParamsWithTimeout

func NewWatchNamespaceServiceRevisionParamsWithTimeout(timeout time.Duration) *WatchNamespaceServiceRevisionParams

NewWatchNamespaceServiceRevisionParamsWithTimeout creates a new WatchNamespaceServiceRevisionParams object with the ability to set a timeout on a request.

func (*WatchNamespaceServiceRevisionParams) SetContext

SetContext adds the context to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) SetDefaults

func (o *WatchNamespaceServiceRevisionParams) SetDefaults()

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

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

func (*WatchNamespaceServiceRevisionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) SetNamespace

func (o *WatchNamespaceServiceRevisionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) SetRevisionGeneration

func (o *WatchNamespaceServiceRevisionParams) SetRevisionGeneration(revisionGeneration string)

SetRevisionGeneration adds the revisionGeneration to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) SetServiceName

func (o *WatchNamespaceServiceRevisionParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) SetTimeout

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

SetTimeout adds the timeout to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) WithContext

WithContext adds the context to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) WithDefaults

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

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

func (*WatchNamespaceServiceRevisionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) WithNamespace

WithNamespace adds the namespace to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) WithRevisionGeneration

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

WithRevisionGeneration adds the revisionGeneration to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) WithServiceName

WithServiceName adds the serviceName to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) WithTimeout

WithTimeout adds the timeout to the watch namespace service revision params

func (*WatchNamespaceServiceRevisionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type WatchNamespaceServiceRevisionReader

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

WatchNamespaceServiceRevisionReader is a Reader for the WatchNamespaceServiceRevision structure.

func (*WatchNamespaceServiceRevisionReader) ReadResponse

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