other

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastCloudeventOK

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

successfully sent cloud event

func NewBroadcastCloudeventOK

func NewBroadcastCloudeventOK() *BroadcastCloudeventOK

NewBroadcastCloudeventOK creates a BroadcastCloudeventOK with default headers values

func (*BroadcastCloudeventOK) Error

func (o *BroadcastCloudeventOK) Error() string

type BroadcastCloudeventParams

type BroadcastCloudeventParams struct {

	/* Cloudevent.

	   Cloud Event request to be sent.
	*/
	Cloudevent interface{}

	/* Namespace.

	   target namespace
	*/
	Namespace string

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

BroadcastCloudeventParams contains all the parameters to send to the API endpoint

for the broadcast cloudevent operation.

Typically these are written to a http.Request.

func NewBroadcastCloudeventParams

func NewBroadcastCloudeventParams() *BroadcastCloudeventParams

NewBroadcastCloudeventParams creates a new BroadcastCloudeventParams 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 NewBroadcastCloudeventParamsWithContext

func NewBroadcastCloudeventParamsWithContext(ctx context.Context) *BroadcastCloudeventParams

NewBroadcastCloudeventParamsWithContext creates a new BroadcastCloudeventParams object with the ability to set a context for a request.

func NewBroadcastCloudeventParamsWithHTTPClient

func NewBroadcastCloudeventParamsWithHTTPClient(client *http.Client) *BroadcastCloudeventParams

NewBroadcastCloudeventParamsWithHTTPClient creates a new BroadcastCloudeventParams object with the ability to set a custom HTTPClient for a request.

func NewBroadcastCloudeventParamsWithTimeout

func NewBroadcastCloudeventParamsWithTimeout(timeout time.Duration) *BroadcastCloudeventParams

NewBroadcastCloudeventParamsWithTimeout creates a new BroadcastCloudeventParams object with the ability to set a timeout on a request.

func (*BroadcastCloudeventParams) SetCloudevent

func (o *BroadcastCloudeventParams) SetCloudevent(cloudevent interface{})

SetCloudevent adds the cloudevent to the broadcast cloudevent params

func (*BroadcastCloudeventParams) SetContext

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

SetContext adds the context to the broadcast cloudevent params

func (*BroadcastCloudeventParams) SetDefaults

func (o *BroadcastCloudeventParams) SetDefaults()

SetDefaults hydrates default values in the broadcast cloudevent params (not the query body).

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

func (*BroadcastCloudeventParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the broadcast cloudevent params

func (*BroadcastCloudeventParams) SetNamespace

func (o *BroadcastCloudeventParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the broadcast cloudevent params

func (*BroadcastCloudeventParams) SetTimeout

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

SetTimeout adds the timeout to the broadcast cloudevent params

func (*BroadcastCloudeventParams) WithCloudevent

func (o *BroadcastCloudeventParams) WithCloudevent(cloudevent interface{}) *BroadcastCloudeventParams

WithCloudevent adds the cloudevent to the broadcast cloudevent params

func (*BroadcastCloudeventParams) WithContext

WithContext adds the context to the broadcast cloudevent params

func (*BroadcastCloudeventParams) WithDefaults

WithDefaults hydrates default values in the broadcast cloudevent params (not the query body).

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

func (*BroadcastCloudeventParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the broadcast cloudevent params

func (*BroadcastCloudeventParams) WithNamespace

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

WithNamespace adds the namespace to the broadcast cloudevent params

func (*BroadcastCloudeventParams) WithTimeout

WithTimeout adds the timeout to the broadcast cloudevent params

func (*BroadcastCloudeventParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BroadcastCloudeventReader

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

BroadcastCloudeventReader is a Reader for the BroadcastCloudevent structure.

func (*BroadcastCloudeventReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for other API

func (*Client) BroadcastCloudevent

func (a *Client) BroadcastCloudevent(params *BroadcastCloudeventParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BroadcastCloudeventOK, error)
BroadcastCloudevent broadcasts cloud event

Broadcast a cloud event to a namespace.

Cloud events posted to this api will be picked up by any workflows listening to the same event type on the namescape. The body of this request should follow the cloud event core specification defined at https://github.com/cloudevents/spec .

func (*Client) JqPlayground

func (a *Client) JqPlayground(params *JqPlaygroundParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*JqPlaygroundOK, error)

JqPlayground js q playground api to test jq queries

JQ Playground is a sandbox where you can test jq queries with custom data.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Version

func (a *Client) Version(params *VersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VersionOK, error)

Version returns version information for servers in the cluster

Returns version information for servers in the cluster.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	BroadcastCloudevent(params *BroadcastCloudeventParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BroadcastCloudeventOK, error)

	JqPlayground(params *JqPlaygroundParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*JqPlaygroundOK, error)

	Version(params *VersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VersionOK, 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 other API client.

type JqPlaygroundBadRequest

type JqPlaygroundBadRequest struct {
}
JqPlaygroundBadRequest describes a response with status code 400, with default header values.

the request was invalid

func NewJqPlaygroundBadRequest

func NewJqPlaygroundBadRequest() *JqPlaygroundBadRequest

NewJqPlaygroundBadRequest creates a JqPlaygroundBadRequest with default headers values

func (*JqPlaygroundBadRequest) Error

func (o *JqPlaygroundBadRequest) Error() string

type JqPlaygroundBody

type JqPlaygroundBody struct {

	// JSON data encoded in base64
	// Required: true
	Data *string `json:"data"`

	// jq query to manipulate JSON data
	// Required: true
	Query *string `json:"query"`
}

JqPlaygroundBody jq playground body // Example: {"data":"eyJhIjogMSwgImIiOiAyLCAiYyI6IDQsICJkIjogN30=","query":"map(select(. \u003e= 2))"} swagger:model JqPlaygroundBody

func (*JqPlaygroundBody) ContextValidate

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

ContextValidate validates this jq playground body based on context it is used

func (*JqPlaygroundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*JqPlaygroundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JqPlaygroundBody) Validate

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

Validate validates this jq playground body

type JqPlaygroundInternalServerError

type JqPlaygroundInternalServerError struct {
}
JqPlaygroundInternalServerError describes a response with status code 500, with default header values.

an unexpected internal error occurred

func NewJqPlaygroundInternalServerError

func NewJqPlaygroundInternalServerError() *JqPlaygroundInternalServerError

NewJqPlaygroundInternalServerError creates a JqPlaygroundInternalServerError with default headers values

func (*JqPlaygroundInternalServerError) Error

type JqPlaygroundOK

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

jq query was successful

func NewJqPlaygroundOK

func NewJqPlaygroundOK() *JqPlaygroundOK

NewJqPlaygroundOK creates a JqPlaygroundOK with default headers values

func (*JqPlaygroundOK) Error

func (o *JqPlaygroundOK) Error() string

type JqPlaygroundParams

type JqPlaygroundParams struct {

	/* JQPayload.

	   Payload that contains both the JSON data to manipulate and jq query.
	*/
	JQPayload JqPlaygroundBody

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

JqPlaygroundParams contains all the parameters to send to the API endpoint

for the jq playground operation.

Typically these are written to a http.Request.

func NewJqPlaygroundParams

func NewJqPlaygroundParams() *JqPlaygroundParams

NewJqPlaygroundParams creates a new JqPlaygroundParams 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 NewJqPlaygroundParamsWithContext

func NewJqPlaygroundParamsWithContext(ctx context.Context) *JqPlaygroundParams

NewJqPlaygroundParamsWithContext creates a new JqPlaygroundParams object with the ability to set a context for a request.

func NewJqPlaygroundParamsWithHTTPClient

func NewJqPlaygroundParamsWithHTTPClient(client *http.Client) *JqPlaygroundParams

NewJqPlaygroundParamsWithHTTPClient creates a new JqPlaygroundParams object with the ability to set a custom HTTPClient for a request.

func NewJqPlaygroundParamsWithTimeout

func NewJqPlaygroundParamsWithTimeout(timeout time.Duration) *JqPlaygroundParams

NewJqPlaygroundParamsWithTimeout creates a new JqPlaygroundParams object with the ability to set a timeout on a request.

func (*JqPlaygroundParams) SetContext

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

SetContext adds the context to the jq playground params

func (*JqPlaygroundParams) SetDefaults

func (o *JqPlaygroundParams) SetDefaults()

SetDefaults hydrates default values in the jq playground params (not the query body).

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

func (*JqPlaygroundParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the jq playground params

func (*JqPlaygroundParams) SetJQPayload

func (o *JqPlaygroundParams) SetJQPayload(jQPayload JqPlaygroundBody)

SetJQPayload adds the jQPayload to the jq playground params

func (*JqPlaygroundParams) SetTimeout

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

SetTimeout adds the timeout to the jq playground params

func (*JqPlaygroundParams) WithContext

WithContext adds the context to the jq playground params

func (*JqPlaygroundParams) WithDefaults

func (o *JqPlaygroundParams) WithDefaults() *JqPlaygroundParams

WithDefaults hydrates default values in the jq playground params (not the query body).

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

func (*JqPlaygroundParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the jq playground params

func (*JqPlaygroundParams) WithJQPayload

func (o *JqPlaygroundParams) WithJQPayload(jQPayload JqPlaygroundBody) *JqPlaygroundParams

WithJQPayload adds the jQPayload to the jq playground params

func (*JqPlaygroundParams) WithTimeout

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

WithTimeout adds the timeout to the jq playground params

func (*JqPlaygroundParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type JqPlaygroundReader

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

JqPlaygroundReader is a Reader for the JqPlayground structure.

func (*JqPlaygroundReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type VersionOK

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

version query was successful

func NewVersionOK

func NewVersionOK() *VersionOK

NewVersionOK creates a VersionOK with default headers values

func (*VersionOK) Error

func (o *VersionOK) Error() string

type VersionParams

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

VersionParams contains all the parameters to send to the API endpoint

for the version operation.

Typically these are written to a http.Request.

func NewVersionParams

func NewVersionParams() *VersionParams

NewVersionParams creates a new VersionParams 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 NewVersionParamsWithContext

func NewVersionParamsWithContext(ctx context.Context) *VersionParams

NewVersionParamsWithContext creates a new VersionParams object with the ability to set a context for a request.

func NewVersionParamsWithHTTPClient

func NewVersionParamsWithHTTPClient(client *http.Client) *VersionParams

NewVersionParamsWithHTTPClient creates a new VersionParams object with the ability to set a custom HTTPClient for a request.

func NewVersionParamsWithTimeout

func NewVersionParamsWithTimeout(timeout time.Duration) *VersionParams

NewVersionParamsWithTimeout creates a new VersionParams object with the ability to set a timeout on a request.

func (*VersionParams) SetContext

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

SetContext adds the context to the version params

func (*VersionParams) SetDefaults

func (o *VersionParams) SetDefaults()

SetDefaults hydrates default values in the version params (not the query body).

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

func (*VersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the version params

func (*VersionParams) SetTimeout

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

SetTimeout adds the timeout to the version params

func (*VersionParams) WithContext

func (o *VersionParams) WithContext(ctx context.Context) *VersionParams

WithContext adds the context to the version params

func (*VersionParams) WithDefaults

func (o *VersionParams) WithDefaults() *VersionParams

WithDefaults hydrates default values in the version params (not the query body).

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

func (*VersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the version params

func (*VersionParams) WithTimeout

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

WithTimeout adds the timeout to the version params

func (*VersionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type VersionReader

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

VersionReader is a Reader for the Version structure.

func (*VersionReader) ReadResponse

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