seed

package
v0.0.0-...-192cafe Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 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 Client

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

Client for seed API

func (*Client) GetSeedSettings

func (a *Client) GetSeedSettings(params *GetSeedSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSeedSettingsOK, error)

GetSeedSettings gets the seed settings

func (*Client) ListSeedNames

func (a *Client) ListSeedNames(params *ListSeedNamesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSeedNamesOK, error)

ListSeedNames list seed names API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetSeedSettings(params *GetSeedSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSeedSettingsOK, error)

	ListSeedNames(params *ListSeedNamesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSeedNamesOK, 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 seed API client.

type GetSeedSettingsDefault

type GetSeedSettingsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
GetSeedSettingsDefault describes a response with status code -1, with default header values.

errorResponse

func NewGetSeedSettingsDefault

func NewGetSeedSettingsDefault(code int) *GetSeedSettingsDefault

NewGetSeedSettingsDefault creates a GetSeedSettingsDefault with default headers values

func (*GetSeedSettingsDefault) Code

func (o *GetSeedSettingsDefault) Code() int

Code gets the status code for the get seed settings default response

func (*GetSeedSettingsDefault) Error

func (o *GetSeedSettingsDefault) Error() string

func (*GetSeedSettingsDefault) GetPayload

func (o *GetSeedSettingsDefault) GetPayload() *models.ErrorResponse

type GetSeedSettingsForbidden

type GetSeedSettingsForbidden struct {
}
GetSeedSettingsForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewGetSeedSettingsForbidden

func NewGetSeedSettingsForbidden() *GetSeedSettingsForbidden

NewGetSeedSettingsForbidden creates a GetSeedSettingsForbidden with default headers values

func (*GetSeedSettingsForbidden) Error

func (o *GetSeedSettingsForbidden) Error() string

type GetSeedSettingsOK

type GetSeedSettingsOK struct {
	Payload *models.SeedSettings
}
GetSeedSettingsOK describes a response with status code 200, with default header values.

SeedSettings

func NewGetSeedSettingsOK

func NewGetSeedSettingsOK() *GetSeedSettingsOK

NewGetSeedSettingsOK creates a GetSeedSettingsOK with default headers values

func (*GetSeedSettingsOK) Error

func (o *GetSeedSettingsOK) Error() string

func (*GetSeedSettingsOK) GetPayload

func (o *GetSeedSettingsOK) GetPayload() *models.SeedSettings

type GetSeedSettingsParams

type GetSeedSettingsParams struct {

	// SeedName.
	Name string

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

GetSeedSettingsParams contains all the parameters to send to the API endpoint

for the get seed settings operation.

Typically these are written to a http.Request.

func NewGetSeedSettingsParams

func NewGetSeedSettingsParams() *GetSeedSettingsParams

NewGetSeedSettingsParams creates a new GetSeedSettingsParams 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 NewGetSeedSettingsParamsWithContext

func NewGetSeedSettingsParamsWithContext(ctx context.Context) *GetSeedSettingsParams

NewGetSeedSettingsParamsWithContext creates a new GetSeedSettingsParams object with the ability to set a context for a request.

func NewGetSeedSettingsParamsWithHTTPClient

func NewGetSeedSettingsParamsWithHTTPClient(client *http.Client) *GetSeedSettingsParams

NewGetSeedSettingsParamsWithHTTPClient creates a new GetSeedSettingsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSeedSettingsParamsWithTimeout

func NewGetSeedSettingsParamsWithTimeout(timeout time.Duration) *GetSeedSettingsParams

NewGetSeedSettingsParamsWithTimeout creates a new GetSeedSettingsParams object with the ability to set a timeout on a request.

func (*GetSeedSettingsParams) SetContext

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

SetContext adds the context to the get seed settings params

func (*GetSeedSettingsParams) SetDefaults

func (o *GetSeedSettingsParams) SetDefaults()

SetDefaults hydrates default values in the get seed settings params (not the query body).

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

func (*GetSeedSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get seed settings params

func (*GetSeedSettingsParams) SetName

func (o *GetSeedSettingsParams) SetName(seedName string)

SetName adds the seedName to the get seed settings params

func (*GetSeedSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the get seed settings params

func (*GetSeedSettingsParams) WithContext

WithContext adds the context to the get seed settings params

func (*GetSeedSettingsParams) WithDefaults

func (o *GetSeedSettingsParams) WithDefaults() *GetSeedSettingsParams

WithDefaults hydrates default values in the get seed settings params (not the query body).

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

func (*GetSeedSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get seed settings params

func (*GetSeedSettingsParams) WithName

func (o *GetSeedSettingsParams) WithName(seedName string) *GetSeedSettingsParams

WithName adds the seedName to the get seed settings params

func (*GetSeedSettingsParams) WithTimeout

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

WithTimeout adds the timeout to the get seed settings params

func (*GetSeedSettingsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSeedSettingsReader

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

GetSeedSettingsReader is a Reader for the GetSeedSettings structure.

func (*GetSeedSettingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSeedSettingsUnauthorized

type GetSeedSettingsUnauthorized struct {
}
GetSeedSettingsUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewGetSeedSettingsUnauthorized

func NewGetSeedSettingsUnauthorized() *GetSeedSettingsUnauthorized

NewGetSeedSettingsUnauthorized creates a GetSeedSettingsUnauthorized with default headers values

func (*GetSeedSettingsUnauthorized) Error

type ListSeedNamesDefault

type ListSeedNamesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListSeedNamesDefault describes a response with status code -1, with default header values.

errorResponse

func NewListSeedNamesDefault

func NewListSeedNamesDefault(code int) *ListSeedNamesDefault

NewListSeedNamesDefault creates a ListSeedNamesDefault with default headers values

func (*ListSeedNamesDefault) Code

func (o *ListSeedNamesDefault) Code() int

Code gets the status code for the list seed names default response

func (*ListSeedNamesDefault) Error

func (o *ListSeedNamesDefault) Error() string

func (*ListSeedNamesDefault) GetPayload

func (o *ListSeedNamesDefault) GetPayload() *models.ErrorResponse

type ListSeedNamesOK

type ListSeedNamesOK struct {
	Payload models.SeedNamesList
}
ListSeedNamesOK describes a response with status code 200, with default header values.

SeedNamesList

func NewListSeedNamesOK

func NewListSeedNamesOK() *ListSeedNamesOK

NewListSeedNamesOK creates a ListSeedNamesOK with default headers values

func (*ListSeedNamesOK) Error

func (o *ListSeedNamesOK) Error() string

func (*ListSeedNamesOK) GetPayload

func (o *ListSeedNamesOK) GetPayload() models.SeedNamesList

type ListSeedNamesParams

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

ListSeedNamesParams contains all the parameters to send to the API endpoint

for the list seed names operation.

Typically these are written to a http.Request.

func NewListSeedNamesParams

func NewListSeedNamesParams() *ListSeedNamesParams

NewListSeedNamesParams creates a new ListSeedNamesParams 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 NewListSeedNamesParamsWithContext

func NewListSeedNamesParamsWithContext(ctx context.Context) *ListSeedNamesParams

NewListSeedNamesParamsWithContext creates a new ListSeedNamesParams object with the ability to set a context for a request.

func NewListSeedNamesParamsWithHTTPClient

func NewListSeedNamesParamsWithHTTPClient(client *http.Client) *ListSeedNamesParams

NewListSeedNamesParamsWithHTTPClient creates a new ListSeedNamesParams object with the ability to set a custom HTTPClient for a request.

func NewListSeedNamesParamsWithTimeout

func NewListSeedNamesParamsWithTimeout(timeout time.Duration) *ListSeedNamesParams

NewListSeedNamesParamsWithTimeout creates a new ListSeedNamesParams object with the ability to set a timeout on a request.

func (*ListSeedNamesParams) SetContext

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

SetContext adds the context to the list seed names params

func (*ListSeedNamesParams) SetDefaults

func (o *ListSeedNamesParams) SetDefaults()

SetDefaults hydrates default values in the list seed names params (not the query body).

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

func (*ListSeedNamesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list seed names params

func (*ListSeedNamesParams) SetTimeout

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

SetTimeout adds the timeout to the list seed names params

func (*ListSeedNamesParams) WithContext

WithContext adds the context to the list seed names params

func (*ListSeedNamesParams) WithDefaults

func (o *ListSeedNamesParams) WithDefaults() *ListSeedNamesParams

WithDefaults hydrates default values in the list seed names params (not the query body).

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

func (*ListSeedNamesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list seed names params

func (*ListSeedNamesParams) WithTimeout

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

WithTimeout adds the timeout to the list seed names params

func (*ListSeedNamesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListSeedNamesReader

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

ListSeedNamesReader is a Reader for the ListSeedNames structure.

func (*ListSeedNamesReader) ReadResponse

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