tools

package
v0.2.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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) 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 or arm64)

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)

	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 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