Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) CreateGlobalService(params *CreateGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateGlobalServiceOK, error)
- func (a *Client) DeleteGlobalRevision(params *DeleteGlobalRevisionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteGlobalRevisionOK, error)
- func (a *Client) DeleteGlobalService(params *DeleteGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteGlobalServiceOK, error)
- func (a *Client) GetGlobalService(params *GetGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetGlobalServiceOK, error)
- func (a *Client) GetGlobalServiceList(params *GetGlobalServiceListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetGlobalServiceListOK, error)
- func (a *Client) ListGlobalServiceRevisionPods(params *ListGlobalServiceRevisionPodsParams, ...) (*ListGlobalServiceRevisionPodsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateGlobalService(params *UpdateGlobalServiceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateGlobalServiceOK, error)
- func (a *Client) UpdateGlobalServiceTraffic(params *UpdateGlobalServiceTrafficParams, ...) (*UpdateGlobalServiceTrafficOK, error)
- func (a *Client) WatchGlobalServiceRevision(params *WatchGlobalServiceRevisionParams, ...) (*WatchGlobalServiceRevisionOK, error)
- func (a *Client) WatchGlobalServiceRevisionList(params *WatchGlobalServiceRevisionListParams, ...) (*WatchGlobalServiceRevisionListOK, error)
- type ClientOption
- type ClientService
- type CreateGlobalServiceBody
- func (o *CreateGlobalServiceBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateGlobalServiceBody) MarshalBinary() ([]byte, error)
- func (o *CreateGlobalServiceBody) UnmarshalBinary(b []byte) error
- func (o *CreateGlobalServiceBody) Validate(formats strfmt.Registry) error
- type CreateGlobalServiceOK
- type CreateGlobalServiceParams
- func NewCreateGlobalServiceParams() *CreateGlobalServiceParams
- func NewCreateGlobalServiceParamsWithContext(ctx context.Context) *CreateGlobalServiceParams
- func NewCreateGlobalServiceParamsWithHTTPClient(client *http.Client) *CreateGlobalServiceParams
- func NewCreateGlobalServiceParamsWithTimeout(timeout time.Duration) *CreateGlobalServiceParams
- func (o *CreateGlobalServiceParams) SetContext(ctx context.Context)
- func (o *CreateGlobalServiceParams) SetDefaults()
- func (o *CreateGlobalServiceParams) SetHTTPClient(client *http.Client)
- func (o *CreateGlobalServiceParams) SetService(service CreateGlobalServiceBody)
- func (o *CreateGlobalServiceParams) SetTimeout(timeout time.Duration)
- func (o *CreateGlobalServiceParams) WithContext(ctx context.Context) *CreateGlobalServiceParams
- func (o *CreateGlobalServiceParams) WithDefaults() *CreateGlobalServiceParams
- func (o *CreateGlobalServiceParams) WithHTTPClient(client *http.Client) *CreateGlobalServiceParams
- func (o *CreateGlobalServiceParams) WithService(service CreateGlobalServiceBody) *CreateGlobalServiceParams
- func (o *CreateGlobalServiceParams) WithTimeout(timeout time.Duration) *CreateGlobalServiceParams
- func (o *CreateGlobalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateGlobalServiceReader
- type DeleteGlobalRevisionOK
- type DeleteGlobalRevisionParams
- func NewDeleteGlobalRevisionParams() *DeleteGlobalRevisionParams
- func NewDeleteGlobalRevisionParamsWithContext(ctx context.Context) *DeleteGlobalRevisionParams
- func NewDeleteGlobalRevisionParamsWithHTTPClient(client *http.Client) *DeleteGlobalRevisionParams
- func NewDeleteGlobalRevisionParamsWithTimeout(timeout time.Duration) *DeleteGlobalRevisionParams
- func (o *DeleteGlobalRevisionParams) SetContext(ctx context.Context)
- func (o *DeleteGlobalRevisionParams) SetDefaults()
- func (o *DeleteGlobalRevisionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteGlobalRevisionParams) SetRevisionGeneration(revisionGeneration string)
- func (o *DeleteGlobalRevisionParams) SetServiceName(serviceName string)
- func (o *DeleteGlobalRevisionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteGlobalRevisionParams) WithContext(ctx context.Context) *DeleteGlobalRevisionParams
- func (o *DeleteGlobalRevisionParams) WithDefaults() *DeleteGlobalRevisionParams
- func (o *DeleteGlobalRevisionParams) WithHTTPClient(client *http.Client) *DeleteGlobalRevisionParams
- func (o *DeleteGlobalRevisionParams) WithRevisionGeneration(revisionGeneration string) *DeleteGlobalRevisionParams
- func (o *DeleteGlobalRevisionParams) WithServiceName(serviceName string) *DeleteGlobalRevisionParams
- func (o *DeleteGlobalRevisionParams) WithTimeout(timeout time.Duration) *DeleteGlobalRevisionParams
- func (o *DeleteGlobalRevisionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteGlobalRevisionReader
- type DeleteGlobalServiceOK
- type DeleteGlobalServiceParams
- func NewDeleteGlobalServiceParams() *DeleteGlobalServiceParams
- func NewDeleteGlobalServiceParamsWithContext(ctx context.Context) *DeleteGlobalServiceParams
- func NewDeleteGlobalServiceParamsWithHTTPClient(client *http.Client) *DeleteGlobalServiceParams
- func NewDeleteGlobalServiceParamsWithTimeout(timeout time.Duration) *DeleteGlobalServiceParams
- func (o *DeleteGlobalServiceParams) SetContext(ctx context.Context)
- func (o *DeleteGlobalServiceParams) SetDefaults()
- func (o *DeleteGlobalServiceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteGlobalServiceParams) SetServiceName(serviceName string)
- func (o *DeleteGlobalServiceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteGlobalServiceParams) WithContext(ctx context.Context) *DeleteGlobalServiceParams
- func (o *DeleteGlobalServiceParams) WithDefaults() *DeleteGlobalServiceParams
- func (o *DeleteGlobalServiceParams) WithHTTPClient(client *http.Client) *DeleteGlobalServiceParams
- func (o *DeleteGlobalServiceParams) WithServiceName(serviceName string) *DeleteGlobalServiceParams
- func (o *DeleteGlobalServiceParams) WithTimeout(timeout time.Duration) *DeleteGlobalServiceParams
- func (o *DeleteGlobalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteGlobalServiceReader
- type GetGlobalServiceListOK
- type GetGlobalServiceListParams
- func NewGetGlobalServiceListParams() *GetGlobalServiceListParams
- func NewGetGlobalServiceListParamsWithContext(ctx context.Context) *GetGlobalServiceListParams
- func NewGetGlobalServiceListParamsWithHTTPClient(client *http.Client) *GetGlobalServiceListParams
- func NewGetGlobalServiceListParamsWithTimeout(timeout time.Duration) *GetGlobalServiceListParams
- func (o *GetGlobalServiceListParams) SetContext(ctx context.Context)
- func (o *GetGlobalServiceListParams) SetDefaults()
- func (o *GetGlobalServiceListParams) SetHTTPClient(client *http.Client)
- func (o *GetGlobalServiceListParams) SetTimeout(timeout time.Duration)
- func (o *GetGlobalServiceListParams) WithContext(ctx context.Context) *GetGlobalServiceListParams
- func (o *GetGlobalServiceListParams) WithDefaults() *GetGlobalServiceListParams
- func (o *GetGlobalServiceListParams) WithHTTPClient(client *http.Client) *GetGlobalServiceListParams
- func (o *GetGlobalServiceListParams) WithTimeout(timeout time.Duration) *GetGlobalServiceListParams
- func (o *GetGlobalServiceListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGlobalServiceListReader
- type GetGlobalServiceOK
- type GetGlobalServiceParams
- func NewGetGlobalServiceParams() *GetGlobalServiceParams
- func NewGetGlobalServiceParamsWithContext(ctx context.Context) *GetGlobalServiceParams
- func NewGetGlobalServiceParamsWithHTTPClient(client *http.Client) *GetGlobalServiceParams
- func NewGetGlobalServiceParamsWithTimeout(timeout time.Duration) *GetGlobalServiceParams
- func (o *GetGlobalServiceParams) SetContext(ctx context.Context)
- func (o *GetGlobalServiceParams) SetDefaults()
- func (o *GetGlobalServiceParams) SetHTTPClient(client *http.Client)
- func (o *GetGlobalServiceParams) SetServiceName(serviceName string)
- func (o *GetGlobalServiceParams) SetTimeout(timeout time.Duration)
- func (o *GetGlobalServiceParams) WithContext(ctx context.Context) *GetGlobalServiceParams
- func (o *GetGlobalServiceParams) WithDefaults() *GetGlobalServiceParams
- func (o *GetGlobalServiceParams) WithHTTPClient(client *http.Client) *GetGlobalServiceParams
- func (o *GetGlobalServiceParams) WithServiceName(serviceName string) *GetGlobalServiceParams
- func (o *GetGlobalServiceParams) WithTimeout(timeout time.Duration) *GetGlobalServiceParams
- func (o *GetGlobalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGlobalServiceReader
- type ListGlobalServiceRevisionPodsOK
- type ListGlobalServiceRevisionPodsParams
- func NewListGlobalServiceRevisionPodsParams() *ListGlobalServiceRevisionPodsParams
- func NewListGlobalServiceRevisionPodsParamsWithContext(ctx context.Context) *ListGlobalServiceRevisionPodsParams
- func NewListGlobalServiceRevisionPodsParamsWithHTTPClient(client *http.Client) *ListGlobalServiceRevisionPodsParams
- func NewListGlobalServiceRevisionPodsParamsWithTimeout(timeout time.Duration) *ListGlobalServiceRevisionPodsParams
- func (o *ListGlobalServiceRevisionPodsParams) SetContext(ctx context.Context)
- func (o *ListGlobalServiceRevisionPodsParams) SetDefaults()
- func (o *ListGlobalServiceRevisionPodsParams) SetHTTPClient(client *http.Client)
- func (o *ListGlobalServiceRevisionPodsParams) SetRevisionGeneration(revisionGeneration string)
- func (o *ListGlobalServiceRevisionPodsParams) SetServiceName(serviceName string)
- func (o *ListGlobalServiceRevisionPodsParams) SetTimeout(timeout time.Duration)
- func (o *ListGlobalServiceRevisionPodsParams) WithContext(ctx context.Context) *ListGlobalServiceRevisionPodsParams
- func (o *ListGlobalServiceRevisionPodsParams) WithDefaults() *ListGlobalServiceRevisionPodsParams
- func (o *ListGlobalServiceRevisionPodsParams) WithHTTPClient(client *http.Client) *ListGlobalServiceRevisionPodsParams
- func (o *ListGlobalServiceRevisionPodsParams) WithRevisionGeneration(revisionGeneration string) *ListGlobalServiceRevisionPodsParams
- func (o *ListGlobalServiceRevisionPodsParams) WithServiceName(serviceName string) *ListGlobalServiceRevisionPodsParams
- func (o *ListGlobalServiceRevisionPodsParams) WithTimeout(timeout time.Duration) *ListGlobalServiceRevisionPodsParams
- func (o *ListGlobalServiceRevisionPodsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListGlobalServiceRevisionPodsReader
- type UpdateGlobalServiceBody
- func (o *UpdateGlobalServiceBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateGlobalServiceBody) MarshalBinary() ([]byte, error)
- func (o *UpdateGlobalServiceBody) UnmarshalBinary(b []byte) error
- func (o *UpdateGlobalServiceBody) Validate(formats strfmt.Registry) error
- type UpdateGlobalServiceOK
- type UpdateGlobalServiceParams
- func NewUpdateGlobalServiceParams() *UpdateGlobalServiceParams
- func NewUpdateGlobalServiceParamsWithContext(ctx context.Context) *UpdateGlobalServiceParams
- func NewUpdateGlobalServiceParamsWithHTTPClient(client *http.Client) *UpdateGlobalServiceParams
- func NewUpdateGlobalServiceParamsWithTimeout(timeout time.Duration) *UpdateGlobalServiceParams
- func (o *UpdateGlobalServiceParams) SetContext(ctx context.Context)
- func (o *UpdateGlobalServiceParams) SetDefaults()
- func (o *UpdateGlobalServiceParams) SetHTTPClient(client *http.Client)
- func (o *UpdateGlobalServiceParams) SetService(service UpdateGlobalServiceBody)
- func (o *UpdateGlobalServiceParams) SetServiceName(serviceName string)
- func (o *UpdateGlobalServiceParams) SetTimeout(timeout time.Duration)
- func (o *UpdateGlobalServiceParams) WithContext(ctx context.Context) *UpdateGlobalServiceParams
- func (o *UpdateGlobalServiceParams) WithDefaults() *UpdateGlobalServiceParams
- func (o *UpdateGlobalServiceParams) WithHTTPClient(client *http.Client) *UpdateGlobalServiceParams
- func (o *UpdateGlobalServiceParams) WithService(service UpdateGlobalServiceBody) *UpdateGlobalServiceParams
- func (o *UpdateGlobalServiceParams) WithServiceName(serviceName string) *UpdateGlobalServiceParams
- func (o *UpdateGlobalServiceParams) WithTimeout(timeout time.Duration) *UpdateGlobalServiceParams
- func (o *UpdateGlobalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateGlobalServiceReader
- type UpdateGlobalServiceTrafficBody
- func (o *UpdateGlobalServiceTrafficBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateGlobalServiceTrafficBody) MarshalBinary() ([]byte, error)
- func (o *UpdateGlobalServiceTrafficBody) UnmarshalBinary(b []byte) error
- func (o *UpdateGlobalServiceTrafficBody) Validate(formats strfmt.Registry) error
- type UpdateGlobalServiceTrafficOK
- type UpdateGlobalServiceTrafficParams
- func NewUpdateGlobalServiceTrafficParams() *UpdateGlobalServiceTrafficParams
- func NewUpdateGlobalServiceTrafficParamsWithContext(ctx context.Context) *UpdateGlobalServiceTrafficParams
- func NewUpdateGlobalServiceTrafficParamsWithHTTPClient(client *http.Client) *UpdateGlobalServiceTrafficParams
- func NewUpdateGlobalServiceTrafficParamsWithTimeout(timeout time.Duration) *UpdateGlobalServiceTrafficParams
- func (o *UpdateGlobalServiceTrafficParams) SetContext(ctx context.Context)
- func (o *UpdateGlobalServiceTrafficParams) SetDefaults()
- func (o *UpdateGlobalServiceTrafficParams) SetHTTPClient(client *http.Client)
- func (o *UpdateGlobalServiceTrafficParams) SetServiceName(serviceName string)
- func (o *UpdateGlobalServiceTrafficParams) SetServiceTraffic(serviceTraffic UpdateGlobalServiceTrafficBody)
- func (o *UpdateGlobalServiceTrafficParams) SetTimeout(timeout time.Duration)
- func (o *UpdateGlobalServiceTrafficParams) WithContext(ctx context.Context) *UpdateGlobalServiceTrafficParams
- func (o *UpdateGlobalServiceTrafficParams) WithDefaults() *UpdateGlobalServiceTrafficParams
- func (o *UpdateGlobalServiceTrafficParams) WithHTTPClient(client *http.Client) *UpdateGlobalServiceTrafficParams
- func (o *UpdateGlobalServiceTrafficParams) WithServiceName(serviceName string) *UpdateGlobalServiceTrafficParams
- func (o *UpdateGlobalServiceTrafficParams) WithServiceTraffic(serviceTraffic UpdateGlobalServiceTrafficBody) *UpdateGlobalServiceTrafficParams
- func (o *UpdateGlobalServiceTrafficParams) WithTimeout(timeout time.Duration) *UpdateGlobalServiceTrafficParams
- func (o *UpdateGlobalServiceTrafficParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateGlobalServiceTrafficParamsBodyValuesItems0
- func (o *UpdateGlobalServiceTrafficParamsBodyValuesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateGlobalServiceTrafficParamsBodyValuesItems0) MarshalBinary() ([]byte, error)
- func (o *UpdateGlobalServiceTrafficParamsBodyValuesItems0) UnmarshalBinary(b []byte) error
- func (o *UpdateGlobalServiceTrafficParamsBodyValuesItems0) Validate(formats strfmt.Registry) error
- type UpdateGlobalServiceTrafficReader
- type WatchGlobalServiceRevisionListOK
- type WatchGlobalServiceRevisionListParams
- func NewWatchGlobalServiceRevisionListParams() *WatchGlobalServiceRevisionListParams
- func NewWatchGlobalServiceRevisionListParamsWithContext(ctx context.Context) *WatchGlobalServiceRevisionListParams
- func NewWatchGlobalServiceRevisionListParamsWithHTTPClient(client *http.Client) *WatchGlobalServiceRevisionListParams
- func NewWatchGlobalServiceRevisionListParamsWithTimeout(timeout time.Duration) *WatchGlobalServiceRevisionListParams
- func (o *WatchGlobalServiceRevisionListParams) SetContext(ctx context.Context)
- func (o *WatchGlobalServiceRevisionListParams) SetDefaults()
- func (o *WatchGlobalServiceRevisionListParams) SetHTTPClient(client *http.Client)
- func (o *WatchGlobalServiceRevisionListParams) SetServiceName(serviceName string)
- func (o *WatchGlobalServiceRevisionListParams) SetTimeout(timeout time.Duration)
- func (o *WatchGlobalServiceRevisionListParams) WithContext(ctx context.Context) *WatchGlobalServiceRevisionListParams
- func (o *WatchGlobalServiceRevisionListParams) WithDefaults() *WatchGlobalServiceRevisionListParams
- func (o *WatchGlobalServiceRevisionListParams) WithHTTPClient(client *http.Client) *WatchGlobalServiceRevisionListParams
- func (o *WatchGlobalServiceRevisionListParams) WithServiceName(serviceName string) *WatchGlobalServiceRevisionListParams
- func (o *WatchGlobalServiceRevisionListParams) WithTimeout(timeout time.Duration) *WatchGlobalServiceRevisionListParams
- func (o *WatchGlobalServiceRevisionListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type WatchGlobalServiceRevisionListReader
- type WatchGlobalServiceRevisionOK
- type WatchGlobalServiceRevisionParams
- func NewWatchGlobalServiceRevisionParams() *WatchGlobalServiceRevisionParams
- func NewWatchGlobalServiceRevisionParamsWithContext(ctx context.Context) *WatchGlobalServiceRevisionParams
- func NewWatchGlobalServiceRevisionParamsWithHTTPClient(client *http.Client) *WatchGlobalServiceRevisionParams
- func NewWatchGlobalServiceRevisionParamsWithTimeout(timeout time.Duration) *WatchGlobalServiceRevisionParams
- func (o *WatchGlobalServiceRevisionParams) SetContext(ctx context.Context)
- func (o *WatchGlobalServiceRevisionParams) SetDefaults()
- func (o *WatchGlobalServiceRevisionParams) SetHTTPClient(client *http.Client)
- func (o *WatchGlobalServiceRevisionParams) SetRevisionGeneration(revisionGeneration string)
- func (o *WatchGlobalServiceRevisionParams) SetServiceName(serviceName string)
- func (o *WatchGlobalServiceRevisionParams) SetTimeout(timeout time.Duration)
- func (o *WatchGlobalServiceRevisionParams) WithContext(ctx context.Context) *WatchGlobalServiceRevisionParams
- func (o *WatchGlobalServiceRevisionParams) WithDefaults() *WatchGlobalServiceRevisionParams
- func (o *WatchGlobalServiceRevisionParams) WithHTTPClient(client *http.Client) *WatchGlobalServiceRevisionParams
- func (o *WatchGlobalServiceRevisionParams) WithRevisionGeneration(revisionGeneration string) *WatchGlobalServiceRevisionParams
- func (o *WatchGlobalServiceRevisionParams) WithServiceName(serviceName string) *WatchGlobalServiceRevisionParams
- func (o *WatchGlobalServiceRevisionParams) WithTimeout(timeout time.Duration) *WatchGlobalServiceRevisionParams
- func (o *WatchGlobalServiceRevisionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type WatchGlobalServiceRevisionReader
Constants ¶
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" )
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
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 ¶
func (o *CreateGlobalServiceParams) WithContext(ctx context.Context) *CreateGlobalServiceParams
WithContext adds the context to the create global service params
func (*CreateGlobalServiceParams) WithDefaults ¶
func (o *CreateGlobalServiceParams) WithDefaults() *CreateGlobalServiceParams
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 ¶
func (o *CreateGlobalServiceParams) WithService(service CreateGlobalServiceBody) *CreateGlobalServiceParams
WithService adds the service to the create global service params
func (*CreateGlobalServiceParams) WithTimeout ¶
func (o *CreateGlobalServiceParams) WithTimeout(timeout time.Duration) *CreateGlobalServiceParams
WithTimeout adds the timeout to the create global service params
func (*CreateGlobalServiceParams) WriteToRequest ¶
func (o *CreateGlobalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteGlobalRevisionParams) WithContext(ctx context.Context) *DeleteGlobalRevisionParams
WithContext adds the context to the delete global revision params
func (*DeleteGlobalRevisionParams) WithDefaults ¶
func (o *DeleteGlobalRevisionParams) WithDefaults() *DeleteGlobalRevisionParams
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 ¶
func (o *DeleteGlobalRevisionParams) WithHTTPClient(client *http.Client) *DeleteGlobalRevisionParams
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 ¶
func (o *DeleteGlobalRevisionParams) WithTimeout(timeout time.Duration) *DeleteGlobalRevisionParams
WithTimeout adds the timeout to the delete global revision params
func (*DeleteGlobalRevisionParams) WriteToRequest ¶
func (o *DeleteGlobalRevisionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteGlobalServiceParams) WithContext(ctx context.Context) *DeleteGlobalServiceParams
WithContext adds the context to the delete global service params
func (*DeleteGlobalServiceParams) WithDefaults ¶
func (o *DeleteGlobalServiceParams) WithDefaults() *DeleteGlobalServiceParams
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 ¶
func (o *DeleteGlobalServiceParams) WithTimeout(timeout time.Duration) *DeleteGlobalServiceParams
WithTimeout adds the timeout to the delete global service params
func (*DeleteGlobalServiceParams) WriteToRequest ¶
func (o *DeleteGlobalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetGlobalServiceListParams) WithContext(ctx context.Context) *GetGlobalServiceListParams
WithContext adds the context to the get global service list params
func (*GetGlobalServiceListParams) WithDefaults ¶
func (o *GetGlobalServiceListParams) WithDefaults() *GetGlobalServiceListParams
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 ¶
func (o *GetGlobalServiceListParams) WithHTTPClient(client *http.Client) *GetGlobalServiceListParams
WithHTTPClient adds the HTTPClient to the get global service list params
func (*GetGlobalServiceListParams) WithTimeout ¶
func (o *GetGlobalServiceListParams) WithTimeout(timeout time.Duration) *GetGlobalServiceListParams
WithTimeout adds the timeout to the get global service list params
func (*GetGlobalServiceListParams) WriteToRequest ¶
func (o *GetGlobalServiceListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetGlobalServiceParams) WithContext(ctx context.Context) *GetGlobalServiceParams
WithContext adds the context to the get global service params
func (*GetGlobalServiceParams) WithDefaults ¶
func (o *GetGlobalServiceParams) WithDefaults() *GetGlobalServiceParams
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 ¶
func (o *GetGlobalServiceParams) WithTimeout(timeout time.Duration) *GetGlobalServiceParams
WithTimeout adds the timeout to the get global service params
func (*GetGlobalServiceParams) WriteToRequest ¶
func (o *GetGlobalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListGlobalServiceRevisionPodsOK) Error() string
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 ¶
func (o *ListGlobalServiceRevisionPodsParams) SetContext(ctx context.Context)
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 ¶
func (o *ListGlobalServiceRevisionPodsParams) WithContext(ctx context.Context) *ListGlobalServiceRevisionPodsParams
WithContext adds the context to the list global service revision pods params
func (*ListGlobalServiceRevisionPodsParams) WithDefaults ¶
func (o *ListGlobalServiceRevisionPodsParams) WithDefaults() *ListGlobalServiceRevisionPodsParams
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 ¶
func (o *ListGlobalServiceRevisionPodsParams) WithHTTPClient(client *http.Client) *ListGlobalServiceRevisionPodsParams
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 ¶
func (o *ListGlobalServiceRevisionPodsParams) WithServiceName(serviceName string) *ListGlobalServiceRevisionPodsParams
WithServiceName adds the serviceName to the list global service revision pods params
func (*ListGlobalServiceRevisionPodsParams) WithTimeout ¶
func (o *ListGlobalServiceRevisionPodsParams) WithTimeout(timeout time.Duration) *ListGlobalServiceRevisionPodsParams
WithTimeout adds the timeout to the list global service revision pods params
func (*ListGlobalServiceRevisionPodsParams) WriteToRequest ¶
func (o *ListGlobalServiceRevisionPodsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *UpdateGlobalServiceParams) WithContext(ctx context.Context) *UpdateGlobalServiceParams
WithContext adds the context to the update global service params
func (*UpdateGlobalServiceParams) WithDefaults ¶
func (o *UpdateGlobalServiceParams) WithDefaults() *UpdateGlobalServiceParams
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 ¶
func (o *UpdateGlobalServiceParams) WithService(service UpdateGlobalServiceBody) *UpdateGlobalServiceParams
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 ¶
func (o *UpdateGlobalServiceParams) WithTimeout(timeout time.Duration) *UpdateGlobalServiceParams
WithTimeout adds the timeout to the update global service params
func (*UpdateGlobalServiceParams) WriteToRequest ¶
func (o *UpdateGlobalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *UpdateGlobalServiceTrafficOK) Error() string
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 ¶
func (o *UpdateGlobalServiceTrafficParams) SetContext(ctx context.Context)
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 ¶
func (o *UpdateGlobalServiceTrafficParams) WithContext(ctx context.Context) *UpdateGlobalServiceTrafficParams
WithContext adds the context to the update global service traffic params
func (*UpdateGlobalServiceTrafficParams) WithDefaults ¶
func (o *UpdateGlobalServiceTrafficParams) WithDefaults() *UpdateGlobalServiceTrafficParams
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 ¶
func (o *UpdateGlobalServiceTrafficParams) WithHTTPClient(client *http.Client) *UpdateGlobalServiceTrafficParams
WithHTTPClient adds the HTTPClient to the update global service traffic params
func (*UpdateGlobalServiceTrafficParams) WithServiceName ¶
func (o *UpdateGlobalServiceTrafficParams) WithServiceName(serviceName string) *UpdateGlobalServiceTrafficParams
WithServiceName adds the serviceName to the update global service traffic params
func (*UpdateGlobalServiceTrafficParams) WithServiceTraffic ¶
func (o *UpdateGlobalServiceTrafficParams) WithServiceTraffic(serviceTraffic UpdateGlobalServiceTrafficBody) *UpdateGlobalServiceTrafficParams
WithServiceTraffic adds the serviceTraffic to the update global service traffic params
func (*UpdateGlobalServiceTrafficParams) WithTimeout ¶
func (o *UpdateGlobalServiceTrafficParams) WithTimeout(timeout time.Duration) *UpdateGlobalServiceTrafficParams
WithTimeout adds the timeout to the update global service traffic params
func (*UpdateGlobalServiceTrafficParams) WriteToRequest ¶
func (o *UpdateGlobalServiceTrafficParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdateGlobalServiceTrafficParamsBodyValuesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this update global service traffic params body values items0 based on context it is used
func (*UpdateGlobalServiceTrafficParamsBodyValuesItems0) MarshalBinary ¶
func (o *UpdateGlobalServiceTrafficParamsBodyValuesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateGlobalServiceTrafficParamsBodyValuesItems0) UnmarshalBinary ¶
func (o *UpdateGlobalServiceTrafficParamsBodyValuesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *WatchGlobalServiceRevisionListOK) Error() string
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 ¶
func (o *WatchGlobalServiceRevisionListParams) SetContext(ctx context.Context)
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 ¶
func (o *WatchGlobalServiceRevisionListParams) WithContext(ctx context.Context) *WatchGlobalServiceRevisionListParams
WithContext adds the context to the watch global service revision list params
func (*WatchGlobalServiceRevisionListParams) WithDefaults ¶
func (o *WatchGlobalServiceRevisionListParams) WithDefaults() *WatchGlobalServiceRevisionListParams
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 ¶
func (o *WatchGlobalServiceRevisionListParams) WithHTTPClient(client *http.Client) *WatchGlobalServiceRevisionListParams
WithHTTPClient adds the HTTPClient to the watch global service revision list params
func (*WatchGlobalServiceRevisionListParams) WithServiceName ¶
func (o *WatchGlobalServiceRevisionListParams) WithServiceName(serviceName string) *WatchGlobalServiceRevisionListParams
WithServiceName adds the serviceName to the watch global service revision list params
func (*WatchGlobalServiceRevisionListParams) WithTimeout ¶
func (o *WatchGlobalServiceRevisionListParams) WithTimeout(timeout time.Duration) *WatchGlobalServiceRevisionListParams
WithTimeout adds the timeout to the watch global service revision list params
func (*WatchGlobalServiceRevisionListParams) WriteToRequest ¶
func (o *WatchGlobalServiceRevisionListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *WatchGlobalServiceRevisionOK) Error() string
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 ¶
func (o *WatchGlobalServiceRevisionParams) SetContext(ctx context.Context)
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 ¶
func (o *WatchGlobalServiceRevisionParams) WithContext(ctx context.Context) *WatchGlobalServiceRevisionParams
WithContext adds the context to the watch global service revision params
func (*WatchGlobalServiceRevisionParams) WithDefaults ¶
func (o *WatchGlobalServiceRevisionParams) WithDefaults() *WatchGlobalServiceRevisionParams
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 ¶
func (o *WatchGlobalServiceRevisionParams) WithHTTPClient(client *http.Client) *WatchGlobalServiceRevisionParams
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 ¶
func (o *WatchGlobalServiceRevisionParams) WithServiceName(serviceName string) *WatchGlobalServiceRevisionParams
WithServiceName adds the serviceName to the watch global service revision params
func (*WatchGlobalServiceRevisionParams) WithTimeout ¶
func (o *WatchGlobalServiceRevisionParams) WithTimeout(timeout time.Duration) *WatchGlobalServiceRevisionParams
WithTimeout adds the timeout to the watch global service revision params
func (*WatchGlobalServiceRevisionParams) WriteToRequest ¶
func (o *WatchGlobalServiceRevisionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_global_service_parameters.go
- create_global_service_responses.go
- delete_global_revision_parameters.go
- delete_global_revision_responses.go
- delete_global_service_parameters.go
- delete_global_service_responses.go
- get_global_service_list_parameters.go
- get_global_service_list_responses.go
- get_global_service_parameters.go
- get_global_service_responses.go
- global_services_client.go
- list_global_service_revision_pods_parameters.go
- list_global_service_revision_pods_responses.go
- update_global_service_parameters.go
- update_global_service_responses.go
- update_global_service_traffic_parameters.go
- update_global_service_traffic_responses.go
- watch_global_service_revision_list_parameters.go
- watch_global_service_revision_list_responses.go
- watch_global_service_revision_parameters.go
- watch_global_service_revision_responses.go