tools

package
v0.2.3-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminGarmAgentListBadRequest

type AdminGarmAgentListBadRequest struct {
	Payload apiserver_params.APIErrorResponse
}

AdminGarmAgentListBadRequest describes a response with status code 400, with default header values.

APIErrorResponse

func NewAdminGarmAgentListBadRequest

func NewAdminGarmAgentListBadRequest() *AdminGarmAgentListBadRequest

NewAdminGarmAgentListBadRequest creates a AdminGarmAgentListBadRequest with default headers values

func (*AdminGarmAgentListBadRequest) Code

Code gets the status code for the admin garm agent list bad request response

func (*AdminGarmAgentListBadRequest) Error

func (*AdminGarmAgentListBadRequest) GetPayload

func (*AdminGarmAgentListBadRequest) IsClientError

func (o *AdminGarmAgentListBadRequest) IsClientError() bool

IsClientError returns true when this admin garm agent list bad request response has a 4xx status code

func (*AdminGarmAgentListBadRequest) IsCode

func (o *AdminGarmAgentListBadRequest) IsCode(code int) bool

IsCode returns true when this admin garm agent list bad request response a status code equal to that given

func (*AdminGarmAgentListBadRequest) IsRedirect

func (o *AdminGarmAgentListBadRequest) IsRedirect() bool

IsRedirect returns true when this admin garm agent list bad request response has a 3xx status code

func (*AdminGarmAgentListBadRequest) IsServerError

func (o *AdminGarmAgentListBadRequest) IsServerError() bool

IsServerError returns true when this admin garm agent list bad request response has a 5xx status code

func (*AdminGarmAgentListBadRequest) IsSuccess

func (o *AdminGarmAgentListBadRequest) IsSuccess() bool

IsSuccess returns true when this admin garm agent list bad request response has a 2xx status code

func (*AdminGarmAgentListBadRequest) String

type AdminGarmAgentListOK

type AdminGarmAgentListOK struct {
	Payload garm_params.GARMAgentToolsPaginatedResponse
}

AdminGarmAgentListOK describes a response with status code 200, with default header values.

GARMAgentToolsPaginatedResponse

func NewAdminGarmAgentListOK

func NewAdminGarmAgentListOK() *AdminGarmAgentListOK

NewAdminGarmAgentListOK creates a AdminGarmAgentListOK with default headers values

func (*AdminGarmAgentListOK) Code

func (o *AdminGarmAgentListOK) Code() int

Code gets the status code for the admin garm agent list o k response

func (*AdminGarmAgentListOK) Error

func (o *AdminGarmAgentListOK) Error() string

func (*AdminGarmAgentListOK) GetPayload

func (*AdminGarmAgentListOK) IsClientError

func (o *AdminGarmAgentListOK) IsClientError() bool

IsClientError returns true when this admin garm agent list o k response has a 4xx status code

func (*AdminGarmAgentListOK) IsCode

func (o *AdminGarmAgentListOK) IsCode(code int) bool

IsCode returns true when this admin garm agent list o k response a status code equal to that given

func (*AdminGarmAgentListOK) IsRedirect

func (o *AdminGarmAgentListOK) IsRedirect() bool

IsRedirect returns true when this admin garm agent list o k response has a 3xx status code

func (*AdminGarmAgentListOK) IsServerError

func (o *AdminGarmAgentListOK) IsServerError() bool

IsServerError returns true when this admin garm agent list o k response has a 5xx status code

func (*AdminGarmAgentListOK) IsSuccess

func (o *AdminGarmAgentListOK) IsSuccess() bool

IsSuccess returns true when this admin garm agent list o k response has a 2xx status code

func (*AdminGarmAgentListOK) String

func (o *AdminGarmAgentListOK) String() string

type AdminGarmAgentListParams

type AdminGarmAgentListParams struct {

	/* Page.

	   The page at which to list.
	*/
	Page *int64

	/* PageSize.

	   Number of items per page.
	*/
	PageSize *int64

	/* Upstream.

	   If true, list tools from the upstream cached release instead of the local object store.
	*/
	Upstream *bool

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

AdminGarmAgentListParams contains all the parameters to send to the API endpoint

for the admin garm agent list operation.

Typically these are written to a http.Request.

func NewAdminGarmAgentListParams

func NewAdminGarmAgentListParams() *AdminGarmAgentListParams

NewAdminGarmAgentListParams creates a new AdminGarmAgentListParams 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 NewAdminGarmAgentListParamsWithContext

func NewAdminGarmAgentListParamsWithContext(ctx context.Context) *AdminGarmAgentListParams

NewAdminGarmAgentListParamsWithContext creates a new AdminGarmAgentListParams object with the ability to set a context for a request.

func NewAdminGarmAgentListParamsWithHTTPClient

func NewAdminGarmAgentListParamsWithHTTPClient(client *http.Client) *AdminGarmAgentListParams

NewAdminGarmAgentListParamsWithHTTPClient creates a new AdminGarmAgentListParams object with the ability to set a custom HTTPClient for a request.

func NewAdminGarmAgentListParamsWithTimeout

func NewAdminGarmAgentListParamsWithTimeout(timeout time.Duration) *AdminGarmAgentListParams

NewAdminGarmAgentListParamsWithTimeout creates a new AdminGarmAgentListParams object with the ability to set a timeout on a request.

func (*AdminGarmAgentListParams) SetContext

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

SetContext adds the context to the admin garm agent list params

func (*AdminGarmAgentListParams) SetDefaults

func (o *AdminGarmAgentListParams) SetDefaults()

SetDefaults hydrates default values in the admin garm agent list params (not the query body).

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

func (*AdminGarmAgentListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin garm agent list params

func (*AdminGarmAgentListParams) SetPage

func (o *AdminGarmAgentListParams) SetPage(page *int64)

SetPage adds the page to the admin garm agent list params

func (*AdminGarmAgentListParams) SetPageSize

func (o *AdminGarmAgentListParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the admin garm agent list params

func (*AdminGarmAgentListParams) SetTimeout

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

SetTimeout adds the timeout to the admin garm agent list params

func (*AdminGarmAgentListParams) SetUpstream

func (o *AdminGarmAgentListParams) SetUpstream(upstream *bool)

SetUpstream adds the upstream to the admin garm agent list params

func (*AdminGarmAgentListParams) WithContext

WithContext adds the context to the admin garm agent list params

func (*AdminGarmAgentListParams) WithDefaults

WithDefaults hydrates default values in the admin garm agent list params (not the query body).

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

func (*AdminGarmAgentListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin garm agent list params

func (*AdminGarmAgentListParams) WithPage

WithPage adds the page to the admin garm agent list params

func (*AdminGarmAgentListParams) WithPageSize

func (o *AdminGarmAgentListParams) WithPageSize(pageSize *int64) *AdminGarmAgentListParams

WithPageSize adds the pageSize to the admin garm agent list params

func (*AdminGarmAgentListParams) WithTimeout

WithTimeout adds the timeout to the admin garm agent list params

func (*AdminGarmAgentListParams) WithUpstream

func (o *AdminGarmAgentListParams) WithUpstream(upstream *bool) *AdminGarmAgentListParams

WithUpstream adds the upstream to the admin garm agent list params

func (*AdminGarmAgentListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGarmAgentListReader

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

AdminGarmAgentListReader is a Reader for the AdminGarmAgentList structure.

func (*AdminGarmAgentListReader) ReadResponse

func (o *AdminGarmAgentListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type Client

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

Client for tools API

func (*Client) AdminGarmAgentList

func (a *Client) AdminGarmAgentList(params *AdminGarmAgentListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AdminGarmAgentListOK, error)

AdminGarmAgentList lists g a r m agent tools for admin users

func (*Client) ListGARMAgentReleases added in v0.2.2

func (a *Client) ListGARMAgentReleases(params *ListGARMAgentReleasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGARMAgentReleasesOK, error)
ListGARMAgentReleases lists the garm agent releases available at the controller s releases URL

as recorded in the cached release index. The release the controller is

pinned to and the release "latest" resolves to are marked.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UploadGARMAgentTool

func (a *Client) UploadGARMAgentTool(params *UploadGARMAgentToolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadGARMAgentToolOK, error)
UploadGARMAgentTool uploads a g a r m agent tool binary

Uploads a GARM agent tool for a specific OS and architecture.

This will automatically replace any existing tool for the same OS/architecture combination.

Uses custom headers for metadata:

X-Tool-Name: Name of the tool

X-Tool-Description: Description

X-Tool-OS-Type: OS type (linux or windows)

X-Tool-OS-Arch: Architecture (amd64, arm64, arm, ppc64le, s390x or riscv64)

X-Tool-Version: Version string

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	AdminGarmAgentList(params *AdminGarmAgentListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AdminGarmAgentListOK, error)

	ListGARMAgentReleases(params *ListGARMAgentReleasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListGARMAgentReleasesOK, error)

	UploadGARMAgentTool(params *UploadGARMAgentToolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadGARMAgentToolOK, 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 tools API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new tools API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new tools API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type ListGARMAgentReleasesBadRequest added in v0.2.2

type ListGARMAgentReleasesBadRequest struct {
	Payload apiserver_params.APIErrorResponse
}

ListGARMAgentReleasesBadRequest describes a response with status code 400, with default header values.

APIErrorResponse

func NewListGARMAgentReleasesBadRequest added in v0.2.2

func NewListGARMAgentReleasesBadRequest() *ListGARMAgentReleasesBadRequest

NewListGARMAgentReleasesBadRequest creates a ListGARMAgentReleasesBadRequest with default headers values

func (*ListGARMAgentReleasesBadRequest) Code added in v0.2.2

Code gets the status code for the list g a r m agent releases bad request response

func (*ListGARMAgentReleasesBadRequest) Error added in v0.2.2

func (*ListGARMAgentReleasesBadRequest) GetPayload added in v0.2.2

func (*ListGARMAgentReleasesBadRequest) IsClientError added in v0.2.2

func (o *ListGARMAgentReleasesBadRequest) IsClientError() bool

IsClientError returns true when this list g a r m agent releases bad request response has a 4xx status code

func (*ListGARMAgentReleasesBadRequest) IsCode added in v0.2.2

func (o *ListGARMAgentReleasesBadRequest) IsCode(code int) bool

IsCode returns true when this list g a r m agent releases bad request response a status code equal to that given

func (*ListGARMAgentReleasesBadRequest) IsRedirect added in v0.2.2

func (o *ListGARMAgentReleasesBadRequest) IsRedirect() bool

IsRedirect returns true when this list g a r m agent releases bad request response has a 3xx status code

func (*ListGARMAgentReleasesBadRequest) IsServerError added in v0.2.2

func (o *ListGARMAgentReleasesBadRequest) IsServerError() bool

IsServerError returns true when this list g a r m agent releases bad request response has a 5xx status code

func (*ListGARMAgentReleasesBadRequest) IsSuccess added in v0.2.2

func (o *ListGARMAgentReleasesBadRequest) IsSuccess() bool

IsSuccess returns true when this list g a r m agent releases bad request response has a 2xx status code

func (*ListGARMAgentReleasesBadRequest) String added in v0.2.2

type ListGARMAgentReleasesOK added in v0.2.2

type ListGARMAgentReleasesOK struct {
	Payload garm_params.GARMAgentReleases
}

ListGARMAgentReleasesOK describes a response with status code 200, with default header values.

GARMAgentReleases

func NewListGARMAgentReleasesOK added in v0.2.2

func NewListGARMAgentReleasesOK() *ListGARMAgentReleasesOK

NewListGARMAgentReleasesOK creates a ListGARMAgentReleasesOK with default headers values

func (*ListGARMAgentReleasesOK) Code added in v0.2.2

func (o *ListGARMAgentReleasesOK) Code() int

Code gets the status code for the list g a r m agent releases o k response

func (*ListGARMAgentReleasesOK) Error added in v0.2.2

func (o *ListGARMAgentReleasesOK) Error() string

func (*ListGARMAgentReleasesOK) GetPayload added in v0.2.2

func (*ListGARMAgentReleasesOK) IsClientError added in v0.2.2

func (o *ListGARMAgentReleasesOK) IsClientError() bool

IsClientError returns true when this list g a r m agent releases o k response has a 4xx status code

func (*ListGARMAgentReleasesOK) IsCode added in v0.2.2

func (o *ListGARMAgentReleasesOK) IsCode(code int) bool

IsCode returns true when this list g a r m agent releases o k response a status code equal to that given

func (*ListGARMAgentReleasesOK) IsRedirect added in v0.2.2

func (o *ListGARMAgentReleasesOK) IsRedirect() bool

IsRedirect returns true when this list g a r m agent releases o k response has a 3xx status code

func (*ListGARMAgentReleasesOK) IsServerError added in v0.2.2

func (o *ListGARMAgentReleasesOK) IsServerError() bool

IsServerError returns true when this list g a r m agent releases o k response has a 5xx status code

func (*ListGARMAgentReleasesOK) IsSuccess added in v0.2.2

func (o *ListGARMAgentReleasesOK) IsSuccess() bool

IsSuccess returns true when this list g a r m agent releases o k response has a 2xx status code

func (*ListGARMAgentReleasesOK) String added in v0.2.2

func (o *ListGARMAgentReleasesOK) String() string

type ListGARMAgentReleasesParams added in v0.2.2

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

ListGARMAgentReleasesParams contains all the parameters to send to the API endpoint

for the list g a r m agent releases operation.

Typically these are written to a http.Request.

func NewListGARMAgentReleasesParams added in v0.2.2

func NewListGARMAgentReleasesParams() *ListGARMAgentReleasesParams

NewListGARMAgentReleasesParams creates a new ListGARMAgentReleasesParams 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 NewListGARMAgentReleasesParamsWithContext added in v0.2.2

func NewListGARMAgentReleasesParamsWithContext(ctx context.Context) *ListGARMAgentReleasesParams

NewListGARMAgentReleasesParamsWithContext creates a new ListGARMAgentReleasesParams object with the ability to set a context for a request.

func NewListGARMAgentReleasesParamsWithHTTPClient added in v0.2.2

func NewListGARMAgentReleasesParamsWithHTTPClient(client *http.Client) *ListGARMAgentReleasesParams

NewListGARMAgentReleasesParamsWithHTTPClient creates a new ListGARMAgentReleasesParams object with the ability to set a custom HTTPClient for a request.

func NewListGARMAgentReleasesParamsWithTimeout added in v0.2.2

func NewListGARMAgentReleasesParamsWithTimeout(timeout time.Duration) *ListGARMAgentReleasesParams

NewListGARMAgentReleasesParamsWithTimeout creates a new ListGARMAgentReleasesParams object with the ability to set a timeout on a request.

func (*ListGARMAgentReleasesParams) SetContext added in v0.2.2

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

SetContext adds the context to the list g a r m agent releases params

func (*ListGARMAgentReleasesParams) SetDefaults added in v0.2.2

func (o *ListGARMAgentReleasesParams) SetDefaults()

SetDefaults hydrates default values in the list g a r m agent releases params (not the query body).

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

func (*ListGARMAgentReleasesParams) SetHTTPClient added in v0.2.2

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

SetHTTPClient adds the HTTPClient to the list g a r m agent releases params

func (*ListGARMAgentReleasesParams) SetTimeout added in v0.2.2

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

SetTimeout adds the timeout to the list g a r m agent releases params

func (*ListGARMAgentReleasesParams) WithContext added in v0.2.2

WithContext adds the context to the list g a r m agent releases params

func (*ListGARMAgentReleasesParams) WithDefaults added in v0.2.2

WithDefaults hydrates default values in the list g a r m agent releases params (not the query body).

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

func (*ListGARMAgentReleasesParams) WithHTTPClient added in v0.2.2

WithHTTPClient adds the HTTPClient to the list g a r m agent releases params

func (*ListGARMAgentReleasesParams) WithTimeout added in v0.2.2

WithTimeout adds the timeout to the list g a r m agent releases params

func (*ListGARMAgentReleasesParams) WriteToRequest added in v0.2.2

WriteToRequest writes these params to a swagger request

type ListGARMAgentReleasesReader added in v0.2.2

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

ListGARMAgentReleasesReader is a Reader for the ListGARMAgentReleases structure.

func (*ListGARMAgentReleasesReader) ReadResponse added in v0.2.2

func (o *ListGARMAgentReleasesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type UploadGARMAgentToolBadRequest

type UploadGARMAgentToolBadRequest struct {
	Payload apiserver_params.APIErrorResponse
}

UploadGARMAgentToolBadRequest describes a response with status code 400, with default header values.

APIErrorResponse

func NewUploadGARMAgentToolBadRequest

func NewUploadGARMAgentToolBadRequest() *UploadGARMAgentToolBadRequest

NewUploadGARMAgentToolBadRequest creates a UploadGARMAgentToolBadRequest with default headers values

func (*UploadGARMAgentToolBadRequest) Code

Code gets the status code for the upload g a r m agent tool bad request response

func (*UploadGARMAgentToolBadRequest) Error

func (*UploadGARMAgentToolBadRequest) GetPayload

func (*UploadGARMAgentToolBadRequest) IsClientError

func (o *UploadGARMAgentToolBadRequest) IsClientError() bool

IsClientError returns true when this upload g a r m agent tool bad request response has a 4xx status code

func (*UploadGARMAgentToolBadRequest) IsCode

func (o *UploadGARMAgentToolBadRequest) IsCode(code int) bool

IsCode returns true when this upload g a r m agent tool bad request response a status code equal to that given

func (*UploadGARMAgentToolBadRequest) IsRedirect

func (o *UploadGARMAgentToolBadRequest) IsRedirect() bool

IsRedirect returns true when this upload g a r m agent tool bad request response has a 3xx status code

func (*UploadGARMAgentToolBadRequest) IsServerError

func (o *UploadGARMAgentToolBadRequest) IsServerError() bool

IsServerError returns true when this upload g a r m agent tool bad request response has a 5xx status code

func (*UploadGARMAgentToolBadRequest) IsSuccess

func (o *UploadGARMAgentToolBadRequest) IsSuccess() bool

IsSuccess returns true when this upload g a r m agent tool bad request response has a 2xx status code

func (*UploadGARMAgentToolBadRequest) String

type UploadGARMAgentToolOK

type UploadGARMAgentToolOK struct {
	Payload garm_params.FileObject
}

UploadGARMAgentToolOK describes a response with status code 200, with default header values.

FileObject

func NewUploadGARMAgentToolOK

func NewUploadGARMAgentToolOK() *UploadGARMAgentToolOK

NewUploadGARMAgentToolOK creates a UploadGARMAgentToolOK with default headers values

func (*UploadGARMAgentToolOK) Code

func (o *UploadGARMAgentToolOK) Code() int

Code gets the status code for the upload g a r m agent tool o k response

func (*UploadGARMAgentToolOK) Error

func (o *UploadGARMAgentToolOK) Error() string

func (*UploadGARMAgentToolOK) GetPayload

func (*UploadGARMAgentToolOK) IsClientError

func (o *UploadGARMAgentToolOK) IsClientError() bool

IsClientError returns true when this upload g a r m agent tool o k response has a 4xx status code

func (*UploadGARMAgentToolOK) IsCode

func (o *UploadGARMAgentToolOK) IsCode(code int) bool

IsCode returns true when this upload g a r m agent tool o k response a status code equal to that given

func (*UploadGARMAgentToolOK) IsRedirect

func (o *UploadGARMAgentToolOK) IsRedirect() bool

IsRedirect returns true when this upload g a r m agent tool o k response has a 3xx status code

func (*UploadGARMAgentToolOK) IsServerError

func (o *UploadGARMAgentToolOK) IsServerError() bool

IsServerError returns true when this upload g a r m agent tool o k response has a 5xx status code

func (*UploadGARMAgentToolOK) IsSuccess

func (o *UploadGARMAgentToolOK) IsSuccess() bool

IsSuccess returns true when this upload g a r m agent tool o k response has a 2xx status code

func (*UploadGARMAgentToolOK) String

func (o *UploadGARMAgentToolOK) String() string

type UploadGARMAgentToolParams

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

UploadGARMAgentToolParams contains all the parameters to send to the API endpoint

for the upload g a r m agent tool operation.

Typically these are written to a http.Request.

func NewUploadGARMAgentToolParams

func NewUploadGARMAgentToolParams() *UploadGARMAgentToolParams

NewUploadGARMAgentToolParams creates a new UploadGARMAgentToolParams 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 NewUploadGARMAgentToolParamsWithContext

func NewUploadGARMAgentToolParamsWithContext(ctx context.Context) *UploadGARMAgentToolParams

NewUploadGARMAgentToolParamsWithContext creates a new UploadGARMAgentToolParams object with the ability to set a context for a request.

func NewUploadGARMAgentToolParamsWithHTTPClient

func NewUploadGARMAgentToolParamsWithHTTPClient(client *http.Client) *UploadGARMAgentToolParams

NewUploadGARMAgentToolParamsWithHTTPClient creates a new UploadGARMAgentToolParams object with the ability to set a custom HTTPClient for a request.

func NewUploadGARMAgentToolParamsWithTimeout

func NewUploadGARMAgentToolParamsWithTimeout(timeout time.Duration) *UploadGARMAgentToolParams

NewUploadGARMAgentToolParamsWithTimeout creates a new UploadGARMAgentToolParams object with the ability to set a timeout on a request.

func (*UploadGARMAgentToolParams) SetContext

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

SetContext adds the context to the upload g a r m agent tool params

func (*UploadGARMAgentToolParams) SetDefaults

func (o *UploadGARMAgentToolParams) SetDefaults()

SetDefaults hydrates default values in the upload g a r m agent tool params (not the query body).

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

func (*UploadGARMAgentToolParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload g a r m agent tool params

func (*UploadGARMAgentToolParams) SetTimeout

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

SetTimeout adds the timeout to the upload g a r m agent tool params

func (*UploadGARMAgentToolParams) WithContext

WithContext adds the context to the upload g a r m agent tool params

func (*UploadGARMAgentToolParams) WithDefaults

WithDefaults hydrates default values in the upload g a r m agent tool params (not the query body).

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

func (*UploadGARMAgentToolParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upload g a r m agent tool params

func (*UploadGARMAgentToolParams) WithTimeout

WithTimeout adds the timeout to the upload g a r m agent tool params

func (*UploadGARMAgentToolParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UploadGARMAgentToolReader

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

UploadGARMAgentToolReader is a Reader for the UploadGARMAgentTool structure.

func (*UploadGARMAgentToolReader) ReadResponse

func (o *UploadGARMAgentToolReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type UploadGARMAgentToolUnauthorized

type UploadGARMAgentToolUnauthorized struct {
	Payload apiserver_params.APIErrorResponse
}

UploadGARMAgentToolUnauthorized describes a response with status code 401, with default header values.

APIErrorResponse

func NewUploadGARMAgentToolUnauthorized

func NewUploadGARMAgentToolUnauthorized() *UploadGARMAgentToolUnauthorized

NewUploadGARMAgentToolUnauthorized creates a UploadGARMAgentToolUnauthorized with default headers values

func (*UploadGARMAgentToolUnauthorized) Code

Code gets the status code for the upload g a r m agent tool unauthorized response

func (*UploadGARMAgentToolUnauthorized) Error

func (*UploadGARMAgentToolUnauthorized) GetPayload

func (*UploadGARMAgentToolUnauthorized) IsClientError

func (o *UploadGARMAgentToolUnauthorized) IsClientError() bool

IsClientError returns true when this upload g a r m agent tool unauthorized response has a 4xx status code

func (*UploadGARMAgentToolUnauthorized) IsCode

func (o *UploadGARMAgentToolUnauthorized) IsCode(code int) bool

IsCode returns true when this upload g a r m agent tool unauthorized response a status code equal to that given

func (*UploadGARMAgentToolUnauthorized) IsRedirect

func (o *UploadGARMAgentToolUnauthorized) IsRedirect() bool

IsRedirect returns true when this upload g a r m agent tool unauthorized response has a 3xx status code

func (*UploadGARMAgentToolUnauthorized) IsServerError

func (o *UploadGARMAgentToolUnauthorized) IsServerError() bool

IsServerError returns true when this upload g a r m agent tool unauthorized response has a 5xx status code

func (*UploadGARMAgentToolUnauthorized) IsSuccess

func (o *UploadGARMAgentToolUnauthorized) IsSuccess() bool

IsSuccess returns true when this upload g a r m agent tool unauthorized response has a 2xx status code

func (*UploadGARMAgentToolUnauthorized) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL