rbac

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 12 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 rbac API

func (*Client) CreateProjectAPIToken

func (a *Client) CreateProjectAPIToken(params *CreateProjectAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProjectAPITokenCreated, error)
CreateProjectAPIToken creates a project level API token

Create a project-level API token associated with a Kargo Role

virtual resource. Returns a Kubernetes Secret resource representing the token. Store it securely. The token is not retrievable via the Kargo API after creation except in a redacted form.

func (*Client) CreateProjectRole

func (a *Client) CreateProjectRole(params *CreateProjectRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProjectRoleCreated, error)
CreateProjectRole creates a project level kargo role virtual resource

Create a project-level Kargo Role virtual resource by creating

the underlying Kubernetes ServiceAccount, Role, and RoleBinding resources.

func (*Client) CreateSystemAPIToken

func (a *Client) CreateSystemAPIToken(params *CreateSystemAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSystemAPITokenCreated, error)
CreateSystemAPIToken creates a system level API token

Create a system-level API token associated with a system-level

Kargo Role virtual resource. Returns a Kubernetes Secret resource representing the token. Store it securely. The token is not retrievable via the Kargo API after creation except in a redacted form.

func (*Client) DeleteProjectAPIToken

func (a *Client) DeleteProjectAPIToken(params *DeleteProjectAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectAPITokenNoContent, error)

DeleteProjectAPIToken deletes a project level API token

Delete a project-level API token from a project's namespace.

func (*Client) DeleteProjectRole

func (a *Client) DeleteProjectRole(params *DeleteProjectRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectRoleNoContent, error)
DeleteProjectRole deletes a project level kargo role virtual resource

Delete a project-level Kargo Role virtual resource by deleting

the underlying Kubernetes ServiceAccount, Role, and RoleBinding resources from the project's namespace.

func (*Client) DeleteSystemAPIToken

func (a *Client) DeleteSystemAPIToken(params *DeleteSystemAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSystemAPITokenNoContent, error)

DeleteSystemAPIToken deletes a system level API token

Delete a system-level API token.

func (*Client) GetProjectAPIToken

func (a *Client) GetProjectAPIToken(params *GetProjectAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectAPITokenOK, error)
GetProjectAPIToken retrieves a project level API token

Retrieve a project-level API token by name. Returns a heavily

redacted Kubernetes Secret resource.

func (*Client) GetProjectRole

func (a *Client) GetProjectRole(params *GetProjectRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectRoleOK, error)
GetProjectRole retrieves a project level kargo role virtual resource

Retrieve a project-level Kargo Role virtual resource by name.

Returns a Kargo Role virtual resource or its underlying Kubernetes resources.

func (*Client) GetSystemAPIToken

func (a *Client) GetSystemAPIToken(params *GetSystemAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSystemAPITokenOK, error)
GetSystemAPIToken retrieves a system level API token

Retrieve a system-level API token by name. Returns a heavily

redacted Kubernetes Secret resource.

func (*Client) GetSystemRole

func (a *Client) GetSystemRole(params *GetSystemRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSystemRoleOK, error)
GetSystemRole retrieves a system level kargo role virtual resource

Retrieve a system-level Kargo Role virtual resource by name.

Returns a Kargo Role virtual resource or its underlying Kubernetes resources.

func (*Client) Grant

func (a *Client) Grant(params *GrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GrantOK, error)
Grant grants permissions

Grant a project-level Kargo Role to users or grant permissions

to a project-level Kargo Role.

func (*Client) ListProjectAPITokens

func (a *Client) ListProjectAPITokens(params *ListProjectAPITokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectAPITokensOK, error)
ListProjectAPITokens lists project level API tokens

List project-level API tokens. Returns a Kubernetes SecretList

resource containing heavily redacted Secrets.

func (*Client) ListProjectRoles

func (a *Client) ListProjectRoles(params *ListProjectRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectRolesOK, error)
ListProjectRoles lists project level kargo role virtual resources

List project-level Kargo Role virtual resources. Returns a

RoleList resource.

func (*Client) ListSystemAPITokens

func (a *Client) ListSystemAPITokens(params *ListSystemAPITokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSystemAPITokensOK, error)
ListSystemAPITokens lists system level API tokens

List system-level API tokens. Returns a Kubernetes SecretList

resource containing heavily redacted Secrets.

func (*Client) ListSystemRoles

func (a *Client) ListSystemRoles(params *ListSystemRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSystemRolesOK, error)
ListSystemRoles lists system level kargo role virtual resources

List system-level Kargo Role virtual resources. Returns a

RoleList resource.

func (*Client) Revoke

func (a *Client) Revoke(params *RevokeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeOK, error)
Revoke revokes permissions

Revoke a project-level Kargo Role from users or revoke

permissions from a project-level Kargo Role.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRole

func (a *Client) UpdateRole(params *UpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRoleOK, error)
UpdateRole updates a project level kargo role virtual resource

Update a project-level Kargo Role virtual resource by updating

the underlying Kubernetes ServiceAccount, Role, and RoleBinding resources.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

type ClientService

type ClientService interface {
	CreateProjectAPIToken(params *CreateProjectAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProjectAPITokenCreated, error)

	CreateProjectRole(params *CreateProjectRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProjectRoleCreated, error)

	CreateSystemAPIToken(params *CreateSystemAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSystemAPITokenCreated, error)

	DeleteProjectAPIToken(params *DeleteProjectAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectAPITokenNoContent, error)

	DeleteProjectRole(params *DeleteProjectRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectRoleNoContent, error)

	DeleteSystemAPIToken(params *DeleteSystemAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSystemAPITokenNoContent, error)

	GetProjectAPIToken(params *GetProjectAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectAPITokenOK, error)

	GetProjectRole(params *GetProjectRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectRoleOK, error)

	GetSystemAPIToken(params *GetSystemAPITokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSystemAPITokenOK, error)

	GetSystemRole(params *GetSystemRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSystemRoleOK, error)

	Grant(params *GrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GrantOK, error)

	ListProjectAPITokens(params *ListProjectAPITokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectAPITokensOK, error)

	ListProjectRoles(params *ListProjectRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProjectRolesOK, error)

	ListSystemAPITokens(params *ListSystemAPITokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSystemAPITokensOK, error)

	ListSystemRoles(params *ListSystemRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSystemRolesOK, error)

	Revoke(params *RevokeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeOK, error)

	UpdateRole(params *UpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRoleOK, 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 rbac API client.

func NewClientWithBasicAuth

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

New creates a new rbac 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 rbac 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 CreateProjectAPITokenCreated

type CreateProjectAPITokenCreated struct {
	Payload any
}

CreateProjectAPITokenCreated describes a response with status code 201, with default header values.

Secret resource (k8s.io/api/core/v1.Secret)

func NewCreateProjectAPITokenCreated

func NewCreateProjectAPITokenCreated() *CreateProjectAPITokenCreated

NewCreateProjectAPITokenCreated creates a CreateProjectAPITokenCreated with default headers values

func (*CreateProjectAPITokenCreated) Code

Code gets the status code for the create project Api token created response

func (*CreateProjectAPITokenCreated) Error

func (*CreateProjectAPITokenCreated) GetPayload

func (o *CreateProjectAPITokenCreated) GetPayload() any

func (*CreateProjectAPITokenCreated) IsClientError

func (o *CreateProjectAPITokenCreated) IsClientError() bool

IsClientError returns true when this create project Api token created response has a 4xx status code

func (*CreateProjectAPITokenCreated) IsCode

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

IsCode returns true when this create project Api token created response a status code equal to that given

func (*CreateProjectAPITokenCreated) IsRedirect

func (o *CreateProjectAPITokenCreated) IsRedirect() bool

IsRedirect returns true when this create project Api token created response has a 3xx status code

func (*CreateProjectAPITokenCreated) IsServerError

func (o *CreateProjectAPITokenCreated) IsServerError() bool

IsServerError returns true when this create project Api token created response has a 5xx status code

func (*CreateProjectAPITokenCreated) IsSuccess

func (o *CreateProjectAPITokenCreated) IsSuccess() bool

IsSuccess returns true when this create project Api token created response has a 2xx status code

func (*CreateProjectAPITokenCreated) String

type CreateProjectAPITokenParams

type CreateProjectAPITokenParams struct {

	/* Body.

	   Token
	*/
	Body *models.CreateAPITokenRequest

	/* Project.

	   Project name
	*/
	Project string

	/* Role.

	   Role name
	*/
	Role string

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

CreateProjectAPITokenParams contains all the parameters to send to the API endpoint

for the create project API token operation.

Typically these are written to a http.Request.

func NewCreateProjectAPITokenParams

func NewCreateProjectAPITokenParams() *CreateProjectAPITokenParams

NewCreateProjectAPITokenParams creates a new CreateProjectAPITokenParams 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 NewCreateProjectAPITokenParamsWithContext

func NewCreateProjectAPITokenParamsWithContext(ctx context.Context) *CreateProjectAPITokenParams

NewCreateProjectAPITokenParamsWithContext creates a new CreateProjectAPITokenParams object with the ability to set a context for a request.

func NewCreateProjectAPITokenParamsWithHTTPClient

func NewCreateProjectAPITokenParamsWithHTTPClient(client *http.Client) *CreateProjectAPITokenParams

NewCreateProjectAPITokenParamsWithHTTPClient creates a new CreateProjectAPITokenParams object with the ability to set a custom HTTPClient for a request.

func NewCreateProjectAPITokenParamsWithTimeout

func NewCreateProjectAPITokenParamsWithTimeout(timeout time.Duration) *CreateProjectAPITokenParams

NewCreateProjectAPITokenParamsWithTimeout creates a new CreateProjectAPITokenParams object with the ability to set a timeout on a request.

func (*CreateProjectAPITokenParams) SetBody

SetBody adds the body to the create project API token params

func (*CreateProjectAPITokenParams) SetContext

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

SetContext adds the context to the create project API token params

func (*CreateProjectAPITokenParams) SetDefaults

func (o *CreateProjectAPITokenParams) SetDefaults()

SetDefaults hydrates default values in the create project API token params (not the query body).

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

func (*CreateProjectAPITokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create project API token params

func (*CreateProjectAPITokenParams) SetProject

func (o *CreateProjectAPITokenParams) SetProject(project string)

SetProject adds the project to the create project API token params

func (*CreateProjectAPITokenParams) SetRole

func (o *CreateProjectAPITokenParams) SetRole(role string)

SetRole adds the role to the create project API token params

func (*CreateProjectAPITokenParams) SetTimeout

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

SetTimeout adds the timeout to the create project API token params

func (*CreateProjectAPITokenParams) WithBody

WithBody adds the body to the create project API token params

func (*CreateProjectAPITokenParams) WithContext

WithContext adds the context to the create project API token params

func (*CreateProjectAPITokenParams) WithDefaults

WithDefaults hydrates default values in the create project API token params (not the query body).

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

func (*CreateProjectAPITokenParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create project API token params

func (*CreateProjectAPITokenParams) WithProject

WithProject adds the project to the create project API token params

func (*CreateProjectAPITokenParams) WithRole

WithRole adds the role to the create project API token params

func (*CreateProjectAPITokenParams) WithTimeout

WithTimeout adds the timeout to the create project API token params

func (*CreateProjectAPITokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateProjectAPITokenReader

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

CreateProjectAPITokenReader is a Reader for the CreateProjectAPIToken structure.

func (*CreateProjectAPITokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateProjectRoleCreated

type CreateProjectRoleCreated struct {
	Payload any
}

CreateProjectRoleCreated describes a response with status code 201, with default header values.

Role resource (github.com/akuity/kargo/api/rbac/v1alpha1.Role)

func NewCreateProjectRoleCreated

func NewCreateProjectRoleCreated() *CreateProjectRoleCreated

NewCreateProjectRoleCreated creates a CreateProjectRoleCreated with default headers values

func (*CreateProjectRoleCreated) Code

func (o *CreateProjectRoleCreated) Code() int

Code gets the status code for the create project role created response

func (*CreateProjectRoleCreated) Error

func (o *CreateProjectRoleCreated) Error() string

func (*CreateProjectRoleCreated) GetPayload

func (o *CreateProjectRoleCreated) GetPayload() any

func (*CreateProjectRoleCreated) IsClientError

func (o *CreateProjectRoleCreated) IsClientError() bool

IsClientError returns true when this create project role created response has a 4xx status code

func (*CreateProjectRoleCreated) IsCode

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

IsCode returns true when this create project role created response a status code equal to that given

func (*CreateProjectRoleCreated) IsRedirect

func (o *CreateProjectRoleCreated) IsRedirect() bool

IsRedirect returns true when this create project role created response has a 3xx status code

func (*CreateProjectRoleCreated) IsServerError

func (o *CreateProjectRoleCreated) IsServerError() bool

IsServerError returns true when this create project role created response has a 5xx status code

func (*CreateProjectRoleCreated) IsSuccess

func (o *CreateProjectRoleCreated) IsSuccess() bool

IsSuccess returns true when this create project role created response has a 2xx status code

func (*CreateProjectRoleCreated) String

func (o *CreateProjectRoleCreated) String() string

type CreateProjectRoleParams

type CreateProjectRoleParams struct {

	/* Body.

	   Role resource (github.com/akuity/kargo/api/rbac/v1alpha1.Role)
	*/
	Body any

	/* Project.

	   Project name
	*/
	Project string

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

CreateProjectRoleParams contains all the parameters to send to the API endpoint

for the create project role operation.

Typically these are written to a http.Request.

func NewCreateProjectRoleParams

func NewCreateProjectRoleParams() *CreateProjectRoleParams

NewCreateProjectRoleParams creates a new CreateProjectRoleParams 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 NewCreateProjectRoleParamsWithContext

func NewCreateProjectRoleParamsWithContext(ctx context.Context) *CreateProjectRoleParams

NewCreateProjectRoleParamsWithContext creates a new CreateProjectRoleParams object with the ability to set a context for a request.

func NewCreateProjectRoleParamsWithHTTPClient

func NewCreateProjectRoleParamsWithHTTPClient(client *http.Client) *CreateProjectRoleParams

NewCreateProjectRoleParamsWithHTTPClient creates a new CreateProjectRoleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateProjectRoleParamsWithTimeout

func NewCreateProjectRoleParamsWithTimeout(timeout time.Duration) *CreateProjectRoleParams

NewCreateProjectRoleParamsWithTimeout creates a new CreateProjectRoleParams object with the ability to set a timeout on a request.

func (*CreateProjectRoleParams) SetBody

func (o *CreateProjectRoleParams) SetBody(body any)

SetBody adds the body to the create project role params

func (*CreateProjectRoleParams) SetContext

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

SetContext adds the context to the create project role params

func (*CreateProjectRoleParams) SetDefaults

func (o *CreateProjectRoleParams) SetDefaults()

SetDefaults hydrates default values in the create project role params (not the query body).

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

func (*CreateProjectRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create project role params

func (*CreateProjectRoleParams) SetProject

func (o *CreateProjectRoleParams) SetProject(project string)

SetProject adds the project to the create project role params

func (*CreateProjectRoleParams) SetTimeout

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

SetTimeout adds the timeout to the create project role params

func (*CreateProjectRoleParams) WithBody

WithBody adds the body to the create project role params

func (*CreateProjectRoleParams) WithContext

WithContext adds the context to the create project role params

func (*CreateProjectRoleParams) WithDefaults

WithDefaults hydrates default values in the create project role params (not the query body).

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

func (*CreateProjectRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create project role params

func (*CreateProjectRoleParams) WithProject

func (o *CreateProjectRoleParams) WithProject(project string) *CreateProjectRoleParams

WithProject adds the project to the create project role params

func (*CreateProjectRoleParams) WithTimeout

WithTimeout adds the timeout to the create project role params

func (*CreateProjectRoleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateProjectRoleReader

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

CreateProjectRoleReader is a Reader for the CreateProjectRole structure.

func (*CreateProjectRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateSystemAPITokenCreated

type CreateSystemAPITokenCreated struct {
	Payload any
}

CreateSystemAPITokenCreated describes a response with status code 201, with default header values.

Secret resource (k8s.io/api/core/v1.Secret)

func NewCreateSystemAPITokenCreated

func NewCreateSystemAPITokenCreated() *CreateSystemAPITokenCreated

NewCreateSystemAPITokenCreated creates a CreateSystemAPITokenCreated with default headers values

func (*CreateSystemAPITokenCreated) Code

func (o *CreateSystemAPITokenCreated) Code() int

Code gets the status code for the create system Api token created response

func (*CreateSystemAPITokenCreated) Error

func (*CreateSystemAPITokenCreated) GetPayload

func (o *CreateSystemAPITokenCreated) GetPayload() any

func (*CreateSystemAPITokenCreated) IsClientError

func (o *CreateSystemAPITokenCreated) IsClientError() bool

IsClientError returns true when this create system Api token created response has a 4xx status code

func (*CreateSystemAPITokenCreated) IsCode

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

IsCode returns true when this create system Api token created response a status code equal to that given

func (*CreateSystemAPITokenCreated) IsRedirect

func (o *CreateSystemAPITokenCreated) IsRedirect() bool

IsRedirect returns true when this create system Api token created response has a 3xx status code

func (*CreateSystemAPITokenCreated) IsServerError

func (o *CreateSystemAPITokenCreated) IsServerError() bool

IsServerError returns true when this create system Api token created response has a 5xx status code

func (*CreateSystemAPITokenCreated) IsSuccess

func (o *CreateSystemAPITokenCreated) IsSuccess() bool

IsSuccess returns true when this create system Api token created response has a 2xx status code

func (*CreateSystemAPITokenCreated) String

func (o *CreateSystemAPITokenCreated) String() string

type CreateSystemAPITokenParams

type CreateSystemAPITokenParams struct {

	/* Body.

	   Token
	*/
	Body *models.CreateAPITokenRequest

	/* Role.

	   Role name
	*/
	Role string

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

CreateSystemAPITokenParams contains all the parameters to send to the API endpoint

for the create system API token operation.

Typically these are written to a http.Request.

func NewCreateSystemAPITokenParams

func NewCreateSystemAPITokenParams() *CreateSystemAPITokenParams

NewCreateSystemAPITokenParams creates a new CreateSystemAPITokenParams 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 NewCreateSystemAPITokenParamsWithContext

func NewCreateSystemAPITokenParamsWithContext(ctx context.Context) *CreateSystemAPITokenParams

NewCreateSystemAPITokenParamsWithContext creates a new CreateSystemAPITokenParams object with the ability to set a context for a request.

func NewCreateSystemAPITokenParamsWithHTTPClient

func NewCreateSystemAPITokenParamsWithHTTPClient(client *http.Client) *CreateSystemAPITokenParams

NewCreateSystemAPITokenParamsWithHTTPClient creates a new CreateSystemAPITokenParams object with the ability to set a custom HTTPClient for a request.

func NewCreateSystemAPITokenParamsWithTimeout

func NewCreateSystemAPITokenParamsWithTimeout(timeout time.Duration) *CreateSystemAPITokenParams

NewCreateSystemAPITokenParamsWithTimeout creates a new CreateSystemAPITokenParams object with the ability to set a timeout on a request.

func (*CreateSystemAPITokenParams) SetBody

SetBody adds the body to the create system API token params

func (*CreateSystemAPITokenParams) SetContext

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

SetContext adds the context to the create system API token params

func (*CreateSystemAPITokenParams) SetDefaults

func (o *CreateSystemAPITokenParams) SetDefaults()

SetDefaults hydrates default values in the create system API token params (not the query body).

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

func (*CreateSystemAPITokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create system API token params

func (*CreateSystemAPITokenParams) SetRole

func (o *CreateSystemAPITokenParams) SetRole(role string)

SetRole adds the role to the create system API token params

func (*CreateSystemAPITokenParams) SetTimeout

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

SetTimeout adds the timeout to the create system API token params

func (*CreateSystemAPITokenParams) WithBody

WithBody adds the body to the create system API token params

func (*CreateSystemAPITokenParams) WithContext

WithContext adds the context to the create system API token params

func (*CreateSystemAPITokenParams) WithDefaults

WithDefaults hydrates default values in the create system API token params (not the query body).

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

func (*CreateSystemAPITokenParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create system API token params

func (*CreateSystemAPITokenParams) WithRole

WithRole adds the role to the create system API token params

func (*CreateSystemAPITokenParams) WithTimeout

WithTimeout adds the timeout to the create system API token params

func (*CreateSystemAPITokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateSystemAPITokenReader

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

CreateSystemAPITokenReader is a Reader for the CreateSystemAPIToken structure.

func (*CreateSystemAPITokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteProjectAPITokenNoContent

type DeleteProjectAPITokenNoContent struct {
}

DeleteProjectAPITokenNoContent describes a response with status code 204, with default header values.

Deleted successfully

func NewDeleteProjectAPITokenNoContent

func NewDeleteProjectAPITokenNoContent() *DeleteProjectAPITokenNoContent

NewDeleteProjectAPITokenNoContent creates a DeleteProjectAPITokenNoContent with default headers values

func (*DeleteProjectAPITokenNoContent) Code

Code gets the status code for the delete project Api token no content response

func (*DeleteProjectAPITokenNoContent) Error

func (*DeleteProjectAPITokenNoContent) IsClientError

func (o *DeleteProjectAPITokenNoContent) IsClientError() bool

IsClientError returns true when this delete project Api token no content response has a 4xx status code

func (*DeleteProjectAPITokenNoContent) IsCode

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

IsCode returns true when this delete project Api token no content response a status code equal to that given

func (*DeleteProjectAPITokenNoContent) IsRedirect

func (o *DeleteProjectAPITokenNoContent) IsRedirect() bool

IsRedirect returns true when this delete project Api token no content response has a 3xx status code

func (*DeleteProjectAPITokenNoContent) IsServerError

func (o *DeleteProjectAPITokenNoContent) IsServerError() bool

IsServerError returns true when this delete project Api token no content response has a 5xx status code

func (*DeleteProjectAPITokenNoContent) IsSuccess

func (o *DeleteProjectAPITokenNoContent) IsSuccess() bool

IsSuccess returns true when this delete project Api token no content response has a 2xx status code

func (*DeleteProjectAPITokenNoContent) String

type DeleteProjectAPITokenParams

type DeleteProjectAPITokenParams struct {

	/* Apitoken.

	   API token name
	*/
	Apitoken string

	/* Project.

	   Project name
	*/
	Project string

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

DeleteProjectAPITokenParams contains all the parameters to send to the API endpoint

for the delete project API token operation.

Typically these are written to a http.Request.

func NewDeleteProjectAPITokenParams

func NewDeleteProjectAPITokenParams() *DeleteProjectAPITokenParams

NewDeleteProjectAPITokenParams creates a new DeleteProjectAPITokenParams 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 NewDeleteProjectAPITokenParamsWithContext

func NewDeleteProjectAPITokenParamsWithContext(ctx context.Context) *DeleteProjectAPITokenParams

NewDeleteProjectAPITokenParamsWithContext creates a new DeleteProjectAPITokenParams object with the ability to set a context for a request.

func NewDeleteProjectAPITokenParamsWithHTTPClient

func NewDeleteProjectAPITokenParamsWithHTTPClient(client *http.Client) *DeleteProjectAPITokenParams

NewDeleteProjectAPITokenParamsWithHTTPClient creates a new DeleteProjectAPITokenParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteProjectAPITokenParamsWithTimeout

func NewDeleteProjectAPITokenParamsWithTimeout(timeout time.Duration) *DeleteProjectAPITokenParams

NewDeleteProjectAPITokenParamsWithTimeout creates a new DeleteProjectAPITokenParams object with the ability to set a timeout on a request.

func (*DeleteProjectAPITokenParams) SetApitoken

func (o *DeleteProjectAPITokenParams) SetApitoken(apitoken string)

SetApitoken adds the apitoken to the delete project API token params

func (*DeleteProjectAPITokenParams) SetContext

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

SetContext adds the context to the delete project API token params

func (*DeleteProjectAPITokenParams) SetDefaults

func (o *DeleteProjectAPITokenParams) SetDefaults()

SetDefaults hydrates default values in the delete project API token params (not the query body).

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

func (*DeleteProjectAPITokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete project API token params

func (*DeleteProjectAPITokenParams) SetProject

func (o *DeleteProjectAPITokenParams) SetProject(project string)

SetProject adds the project to the delete project API token params

func (*DeleteProjectAPITokenParams) SetTimeout

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

SetTimeout adds the timeout to the delete project API token params

func (*DeleteProjectAPITokenParams) WithApitoken

WithApitoken adds the apitoken to the delete project API token params

func (*DeleteProjectAPITokenParams) WithContext

WithContext adds the context to the delete project API token params

func (*DeleteProjectAPITokenParams) WithDefaults

WithDefaults hydrates default values in the delete project API token params (not the query body).

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

func (*DeleteProjectAPITokenParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete project API token params

func (*DeleteProjectAPITokenParams) WithProject

WithProject adds the project to the delete project API token params

func (*DeleteProjectAPITokenParams) WithTimeout

WithTimeout adds the timeout to the delete project API token params

func (*DeleteProjectAPITokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteProjectAPITokenReader

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

DeleteProjectAPITokenReader is a Reader for the DeleteProjectAPIToken structure.

func (*DeleteProjectAPITokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteProjectRoleNoContent

type DeleteProjectRoleNoContent struct {
}

DeleteProjectRoleNoContent describes a response with status code 204, with default header values.

Deleted successfully

func NewDeleteProjectRoleNoContent

func NewDeleteProjectRoleNoContent() *DeleteProjectRoleNoContent

NewDeleteProjectRoleNoContent creates a DeleteProjectRoleNoContent with default headers values

func (*DeleteProjectRoleNoContent) Code

func (o *DeleteProjectRoleNoContent) Code() int

Code gets the status code for the delete project role no content response

func (*DeleteProjectRoleNoContent) Error

func (*DeleteProjectRoleNoContent) IsClientError

func (o *DeleteProjectRoleNoContent) IsClientError() bool

IsClientError returns true when this delete project role no content response has a 4xx status code

func (*DeleteProjectRoleNoContent) IsCode

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

IsCode returns true when this delete project role no content response a status code equal to that given

func (*DeleteProjectRoleNoContent) IsRedirect

func (o *DeleteProjectRoleNoContent) IsRedirect() bool

IsRedirect returns true when this delete project role no content response has a 3xx status code

func (*DeleteProjectRoleNoContent) IsServerError

func (o *DeleteProjectRoleNoContent) IsServerError() bool

IsServerError returns true when this delete project role no content response has a 5xx status code

func (*DeleteProjectRoleNoContent) IsSuccess

func (o *DeleteProjectRoleNoContent) IsSuccess() bool

IsSuccess returns true when this delete project role no content response has a 2xx status code

func (*DeleteProjectRoleNoContent) String

func (o *DeleteProjectRoleNoContent) String() string

type DeleteProjectRoleParams

type DeleteProjectRoleParams struct {

	/* Project.

	   Project name
	*/
	Project string

	/* Role.

	   Role name
	*/
	Role string

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

DeleteProjectRoleParams contains all the parameters to send to the API endpoint

for the delete project role operation.

Typically these are written to a http.Request.

func NewDeleteProjectRoleParams

func NewDeleteProjectRoleParams() *DeleteProjectRoleParams

NewDeleteProjectRoleParams creates a new DeleteProjectRoleParams 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 NewDeleteProjectRoleParamsWithContext

func NewDeleteProjectRoleParamsWithContext(ctx context.Context) *DeleteProjectRoleParams

NewDeleteProjectRoleParamsWithContext creates a new DeleteProjectRoleParams object with the ability to set a context for a request.

func NewDeleteProjectRoleParamsWithHTTPClient

func NewDeleteProjectRoleParamsWithHTTPClient(client *http.Client) *DeleteProjectRoleParams

NewDeleteProjectRoleParamsWithHTTPClient creates a new DeleteProjectRoleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteProjectRoleParamsWithTimeout

func NewDeleteProjectRoleParamsWithTimeout(timeout time.Duration) *DeleteProjectRoleParams

NewDeleteProjectRoleParamsWithTimeout creates a new DeleteProjectRoleParams object with the ability to set a timeout on a request.

func (*DeleteProjectRoleParams) SetContext

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

SetContext adds the context to the delete project role params

func (*DeleteProjectRoleParams) SetDefaults

func (o *DeleteProjectRoleParams) SetDefaults()

SetDefaults hydrates default values in the delete project role params (not the query body).

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

func (*DeleteProjectRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete project role params

func (*DeleteProjectRoleParams) SetProject

func (o *DeleteProjectRoleParams) SetProject(project string)

SetProject adds the project to the delete project role params

func (*DeleteProjectRoleParams) SetRole

func (o *DeleteProjectRoleParams) SetRole(role string)

SetRole adds the role to the delete project role params

func (*DeleteProjectRoleParams) SetTimeout

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

SetTimeout adds the timeout to the delete project role params

func (*DeleteProjectRoleParams) WithContext

WithContext adds the context to the delete project role params

func (*DeleteProjectRoleParams) WithDefaults

WithDefaults hydrates default values in the delete project role params (not the query body).

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

func (*DeleteProjectRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete project role params

func (*DeleteProjectRoleParams) WithProject

func (o *DeleteProjectRoleParams) WithProject(project string) *DeleteProjectRoleParams

WithProject adds the project to the delete project role params

func (*DeleteProjectRoleParams) WithRole

WithRole adds the role to the delete project role params

func (*DeleteProjectRoleParams) WithTimeout

WithTimeout adds the timeout to the delete project role params

func (*DeleteProjectRoleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteProjectRoleReader

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

DeleteProjectRoleReader is a Reader for the DeleteProjectRole structure.

func (*DeleteProjectRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSystemAPITokenNoContent

type DeleteSystemAPITokenNoContent struct {
}

DeleteSystemAPITokenNoContent describes a response with status code 204, with default header values.

Deleted successfully

func NewDeleteSystemAPITokenNoContent

func NewDeleteSystemAPITokenNoContent() *DeleteSystemAPITokenNoContent

NewDeleteSystemAPITokenNoContent creates a DeleteSystemAPITokenNoContent with default headers values

func (*DeleteSystemAPITokenNoContent) Code

Code gets the status code for the delete system Api token no content response

func (*DeleteSystemAPITokenNoContent) Error

func (*DeleteSystemAPITokenNoContent) IsClientError

func (o *DeleteSystemAPITokenNoContent) IsClientError() bool

IsClientError returns true when this delete system Api token no content response has a 4xx status code

func (*DeleteSystemAPITokenNoContent) IsCode

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

IsCode returns true when this delete system Api token no content response a status code equal to that given

func (*DeleteSystemAPITokenNoContent) IsRedirect

func (o *DeleteSystemAPITokenNoContent) IsRedirect() bool

IsRedirect returns true when this delete system Api token no content response has a 3xx status code

func (*DeleteSystemAPITokenNoContent) IsServerError

func (o *DeleteSystemAPITokenNoContent) IsServerError() bool

IsServerError returns true when this delete system Api token no content response has a 5xx status code

func (*DeleteSystemAPITokenNoContent) IsSuccess

func (o *DeleteSystemAPITokenNoContent) IsSuccess() bool

IsSuccess returns true when this delete system Api token no content response has a 2xx status code

func (*DeleteSystemAPITokenNoContent) String

type DeleteSystemAPITokenParams

type DeleteSystemAPITokenParams struct {

	/* Apitoken.

	   API token name
	*/
	Apitoken string

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

DeleteSystemAPITokenParams contains all the parameters to send to the API endpoint

for the delete system API token operation.

Typically these are written to a http.Request.

func NewDeleteSystemAPITokenParams

func NewDeleteSystemAPITokenParams() *DeleteSystemAPITokenParams

NewDeleteSystemAPITokenParams creates a new DeleteSystemAPITokenParams 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 NewDeleteSystemAPITokenParamsWithContext

func NewDeleteSystemAPITokenParamsWithContext(ctx context.Context) *DeleteSystemAPITokenParams

NewDeleteSystemAPITokenParamsWithContext creates a new DeleteSystemAPITokenParams object with the ability to set a context for a request.

func NewDeleteSystemAPITokenParamsWithHTTPClient

func NewDeleteSystemAPITokenParamsWithHTTPClient(client *http.Client) *DeleteSystemAPITokenParams

NewDeleteSystemAPITokenParamsWithHTTPClient creates a new DeleteSystemAPITokenParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSystemAPITokenParamsWithTimeout

func NewDeleteSystemAPITokenParamsWithTimeout(timeout time.Duration) *DeleteSystemAPITokenParams

NewDeleteSystemAPITokenParamsWithTimeout creates a new DeleteSystemAPITokenParams object with the ability to set a timeout on a request.

func (*DeleteSystemAPITokenParams) SetApitoken

func (o *DeleteSystemAPITokenParams) SetApitoken(apitoken string)

SetApitoken adds the apitoken to the delete system API token params

func (*DeleteSystemAPITokenParams) SetContext

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

SetContext adds the context to the delete system API token params

func (*DeleteSystemAPITokenParams) SetDefaults

func (o *DeleteSystemAPITokenParams) SetDefaults()

SetDefaults hydrates default values in the delete system API token params (not the query body).

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

func (*DeleteSystemAPITokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete system API token params

func (*DeleteSystemAPITokenParams) SetTimeout

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

SetTimeout adds the timeout to the delete system API token params

func (*DeleteSystemAPITokenParams) WithApitoken

WithApitoken adds the apitoken to the delete system API token params

func (*DeleteSystemAPITokenParams) WithContext

WithContext adds the context to the delete system API token params

func (*DeleteSystemAPITokenParams) WithDefaults

WithDefaults hydrates default values in the delete system API token params (not the query body).

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

func (*DeleteSystemAPITokenParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete system API token params

func (*DeleteSystemAPITokenParams) WithTimeout

WithTimeout adds the timeout to the delete system API token params

func (*DeleteSystemAPITokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSystemAPITokenReader

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

DeleteSystemAPITokenReader is a Reader for the DeleteSystemAPIToken structure.

func (*DeleteSystemAPITokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProjectAPITokenOK

type GetProjectAPITokenOK struct {
	Payload any
}

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

Secret resource (k8s.io/api/core/v1.Secret)

func NewGetProjectAPITokenOK

func NewGetProjectAPITokenOK() *GetProjectAPITokenOK

NewGetProjectAPITokenOK creates a GetProjectAPITokenOK with default headers values

func (*GetProjectAPITokenOK) Code

func (o *GetProjectAPITokenOK) Code() int

Code gets the status code for the get project Api token o k response

func (*GetProjectAPITokenOK) Error

func (o *GetProjectAPITokenOK) Error() string

func (*GetProjectAPITokenOK) GetPayload

func (o *GetProjectAPITokenOK) GetPayload() any

func (*GetProjectAPITokenOK) IsClientError

func (o *GetProjectAPITokenOK) IsClientError() bool

IsClientError returns true when this get project Api token o k response has a 4xx status code

func (*GetProjectAPITokenOK) IsCode

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

IsCode returns true when this get project Api token o k response a status code equal to that given

func (*GetProjectAPITokenOK) IsRedirect

func (o *GetProjectAPITokenOK) IsRedirect() bool

IsRedirect returns true when this get project Api token o k response has a 3xx status code

func (*GetProjectAPITokenOK) IsServerError

func (o *GetProjectAPITokenOK) IsServerError() bool

IsServerError returns true when this get project Api token o k response has a 5xx status code

func (*GetProjectAPITokenOK) IsSuccess

func (o *GetProjectAPITokenOK) IsSuccess() bool

IsSuccess returns true when this get project Api token o k response has a 2xx status code

func (*GetProjectAPITokenOK) String

func (o *GetProjectAPITokenOK) String() string

type GetProjectAPITokenParams

type GetProjectAPITokenParams struct {

	/* Apitoken.

	   API token name
	*/
	Apitoken string

	/* Project.

	   Project name
	*/
	Project string

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

GetProjectAPITokenParams contains all the parameters to send to the API endpoint

for the get project API token operation.

Typically these are written to a http.Request.

func NewGetProjectAPITokenParams

func NewGetProjectAPITokenParams() *GetProjectAPITokenParams

NewGetProjectAPITokenParams creates a new GetProjectAPITokenParams 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 NewGetProjectAPITokenParamsWithContext

func NewGetProjectAPITokenParamsWithContext(ctx context.Context) *GetProjectAPITokenParams

NewGetProjectAPITokenParamsWithContext creates a new GetProjectAPITokenParams object with the ability to set a context for a request.

func NewGetProjectAPITokenParamsWithHTTPClient

func NewGetProjectAPITokenParamsWithHTTPClient(client *http.Client) *GetProjectAPITokenParams

NewGetProjectAPITokenParamsWithHTTPClient creates a new GetProjectAPITokenParams object with the ability to set a custom HTTPClient for a request.

func NewGetProjectAPITokenParamsWithTimeout

func NewGetProjectAPITokenParamsWithTimeout(timeout time.Duration) *GetProjectAPITokenParams

NewGetProjectAPITokenParamsWithTimeout creates a new GetProjectAPITokenParams object with the ability to set a timeout on a request.

func (*GetProjectAPITokenParams) SetApitoken

func (o *GetProjectAPITokenParams) SetApitoken(apitoken string)

SetApitoken adds the apitoken to the get project API token params

func (*GetProjectAPITokenParams) SetContext

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

SetContext adds the context to the get project API token params

func (*GetProjectAPITokenParams) SetDefaults

func (o *GetProjectAPITokenParams) SetDefaults()

SetDefaults hydrates default values in the get project API token params (not the query body).

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

func (*GetProjectAPITokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get project API token params

func (*GetProjectAPITokenParams) SetProject

func (o *GetProjectAPITokenParams) SetProject(project string)

SetProject adds the project to the get project API token params

func (*GetProjectAPITokenParams) SetTimeout

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

SetTimeout adds the timeout to the get project API token params

func (*GetProjectAPITokenParams) WithApitoken

func (o *GetProjectAPITokenParams) WithApitoken(apitoken string) *GetProjectAPITokenParams

WithApitoken adds the apitoken to the get project API token params

func (*GetProjectAPITokenParams) WithContext

WithContext adds the context to the get project API token params

func (*GetProjectAPITokenParams) WithDefaults

WithDefaults hydrates default values in the get project API token params (not the query body).

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

func (*GetProjectAPITokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get project API token params

func (*GetProjectAPITokenParams) WithProject

func (o *GetProjectAPITokenParams) WithProject(project string) *GetProjectAPITokenParams

WithProject adds the project to the get project API token params

func (*GetProjectAPITokenParams) WithTimeout

WithTimeout adds the timeout to the get project API token params

func (*GetProjectAPITokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetProjectAPITokenReader

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

GetProjectAPITokenReader is a Reader for the GetProjectAPIToken structure.

func (*GetProjectAPITokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProjectRoleOK

type GetProjectRoleOK struct {
	Payload any
}

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

Role resource (k8s.io/api/rbac/v1.Role) or its underlying Kubernetes resources

func NewGetProjectRoleOK

func NewGetProjectRoleOK() *GetProjectRoleOK

NewGetProjectRoleOK creates a GetProjectRoleOK with default headers values

func (*GetProjectRoleOK) Code

func (o *GetProjectRoleOK) Code() int

Code gets the status code for the get project role o k response

func (*GetProjectRoleOK) Error

func (o *GetProjectRoleOK) Error() string

func (*GetProjectRoleOK) GetPayload

func (o *GetProjectRoleOK) GetPayload() any

func (*GetProjectRoleOK) IsClientError

func (o *GetProjectRoleOK) IsClientError() bool

IsClientError returns true when this get project role o k response has a 4xx status code

func (*GetProjectRoleOK) IsCode

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

IsCode returns true when this get project role o k response a status code equal to that given

func (*GetProjectRoleOK) IsRedirect

func (o *GetProjectRoleOK) IsRedirect() bool

IsRedirect returns true when this get project role o k response has a 3xx status code

func (*GetProjectRoleOK) IsServerError

func (o *GetProjectRoleOK) IsServerError() bool

IsServerError returns true when this get project role o k response has a 5xx status code

func (*GetProjectRoleOK) IsSuccess

func (o *GetProjectRoleOK) IsSuccess() bool

IsSuccess returns true when this get project role o k response has a 2xx status code

func (*GetProjectRoleOK) String

func (o *GetProjectRoleOK) String() string

type GetProjectRoleParams

type GetProjectRoleParams struct {

	/* Project.

	   Project name
	*/
	Project string

	/* Role.

	   Role name
	*/
	Role string

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

GetProjectRoleParams contains all the parameters to send to the API endpoint

for the get project role operation.

Typically these are written to a http.Request.

func NewGetProjectRoleParams

func NewGetProjectRoleParams() *GetProjectRoleParams

NewGetProjectRoleParams creates a new GetProjectRoleParams 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 NewGetProjectRoleParamsWithContext

func NewGetProjectRoleParamsWithContext(ctx context.Context) *GetProjectRoleParams

NewGetProjectRoleParamsWithContext creates a new GetProjectRoleParams object with the ability to set a context for a request.

func NewGetProjectRoleParamsWithHTTPClient

func NewGetProjectRoleParamsWithHTTPClient(client *http.Client) *GetProjectRoleParams

NewGetProjectRoleParamsWithHTTPClient creates a new GetProjectRoleParams object with the ability to set a custom HTTPClient for a request.

func NewGetProjectRoleParamsWithTimeout

func NewGetProjectRoleParamsWithTimeout(timeout time.Duration) *GetProjectRoleParams

NewGetProjectRoleParamsWithTimeout creates a new GetProjectRoleParams object with the ability to set a timeout on a request.

func (*GetProjectRoleParams) SetContext

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

SetContext adds the context to the get project role params

func (*GetProjectRoleParams) SetDefaults

func (o *GetProjectRoleParams) SetDefaults()

SetDefaults hydrates default values in the get project role params (not the query body).

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

func (*GetProjectRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get project role params

func (*GetProjectRoleParams) SetProject

func (o *GetProjectRoleParams) SetProject(project string)

SetProject adds the project to the get project role params

func (*GetProjectRoleParams) SetRole

func (o *GetProjectRoleParams) SetRole(role string)

SetRole adds the role to the get project role params

func (*GetProjectRoleParams) SetTimeout

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

SetTimeout adds the timeout to the get project role params

func (*GetProjectRoleParams) WithContext

WithContext adds the context to the get project role params

func (*GetProjectRoleParams) WithDefaults

func (o *GetProjectRoleParams) WithDefaults() *GetProjectRoleParams

WithDefaults hydrates default values in the get project role params (not the query body).

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

func (*GetProjectRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get project role params

func (*GetProjectRoleParams) WithProject

func (o *GetProjectRoleParams) WithProject(project string) *GetProjectRoleParams

WithProject adds the project to the get project role params

func (*GetProjectRoleParams) WithRole

WithRole adds the role to the get project role params

func (*GetProjectRoleParams) WithTimeout

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

WithTimeout adds the timeout to the get project role params

func (*GetProjectRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProjectRoleReader

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

GetProjectRoleReader is a Reader for the GetProjectRole structure.

func (*GetProjectRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSystemAPITokenOK

type GetSystemAPITokenOK struct {
	Payload any
}

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

Secret resource (k8s.io/api/core/v1.Secret)

func NewGetSystemAPITokenOK

func NewGetSystemAPITokenOK() *GetSystemAPITokenOK

NewGetSystemAPITokenOK creates a GetSystemAPITokenOK with default headers values

func (*GetSystemAPITokenOK) Code

func (o *GetSystemAPITokenOK) Code() int

Code gets the status code for the get system Api token o k response

func (*GetSystemAPITokenOK) Error

func (o *GetSystemAPITokenOK) Error() string

func (*GetSystemAPITokenOK) GetPayload

func (o *GetSystemAPITokenOK) GetPayload() any

func (*GetSystemAPITokenOK) IsClientError

func (o *GetSystemAPITokenOK) IsClientError() bool

IsClientError returns true when this get system Api token o k response has a 4xx status code

func (*GetSystemAPITokenOK) IsCode

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

IsCode returns true when this get system Api token o k response a status code equal to that given

func (*GetSystemAPITokenOK) IsRedirect

func (o *GetSystemAPITokenOK) IsRedirect() bool

IsRedirect returns true when this get system Api token o k response has a 3xx status code

func (*GetSystemAPITokenOK) IsServerError

func (o *GetSystemAPITokenOK) IsServerError() bool

IsServerError returns true when this get system Api token o k response has a 5xx status code

func (*GetSystemAPITokenOK) IsSuccess

func (o *GetSystemAPITokenOK) IsSuccess() bool

IsSuccess returns true when this get system Api token o k response has a 2xx status code

func (*GetSystemAPITokenOK) String

func (o *GetSystemAPITokenOK) String() string

type GetSystemAPITokenParams

type GetSystemAPITokenParams struct {

	/* Apitoken.

	   API token name
	*/
	Apitoken string

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

GetSystemAPITokenParams contains all the parameters to send to the API endpoint

for the get system API token operation.

Typically these are written to a http.Request.

func NewGetSystemAPITokenParams

func NewGetSystemAPITokenParams() *GetSystemAPITokenParams

NewGetSystemAPITokenParams creates a new GetSystemAPITokenParams 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 NewGetSystemAPITokenParamsWithContext

func NewGetSystemAPITokenParamsWithContext(ctx context.Context) *GetSystemAPITokenParams

NewGetSystemAPITokenParamsWithContext creates a new GetSystemAPITokenParams object with the ability to set a context for a request.

func NewGetSystemAPITokenParamsWithHTTPClient

func NewGetSystemAPITokenParamsWithHTTPClient(client *http.Client) *GetSystemAPITokenParams

NewGetSystemAPITokenParamsWithHTTPClient creates a new GetSystemAPITokenParams object with the ability to set a custom HTTPClient for a request.

func NewGetSystemAPITokenParamsWithTimeout

func NewGetSystemAPITokenParamsWithTimeout(timeout time.Duration) *GetSystemAPITokenParams

NewGetSystemAPITokenParamsWithTimeout creates a new GetSystemAPITokenParams object with the ability to set a timeout on a request.

func (*GetSystemAPITokenParams) SetApitoken

func (o *GetSystemAPITokenParams) SetApitoken(apitoken string)

SetApitoken adds the apitoken to the get system API token params

func (*GetSystemAPITokenParams) SetContext

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

SetContext adds the context to the get system API token params

func (*GetSystemAPITokenParams) SetDefaults

func (o *GetSystemAPITokenParams) SetDefaults()

SetDefaults hydrates default values in the get system API token params (not the query body).

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

func (*GetSystemAPITokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get system API token params

func (*GetSystemAPITokenParams) SetTimeout

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

SetTimeout adds the timeout to the get system API token params

func (*GetSystemAPITokenParams) WithApitoken

func (o *GetSystemAPITokenParams) WithApitoken(apitoken string) *GetSystemAPITokenParams

WithApitoken adds the apitoken to the get system API token params

func (*GetSystemAPITokenParams) WithContext

WithContext adds the context to the get system API token params

func (*GetSystemAPITokenParams) WithDefaults

WithDefaults hydrates default values in the get system API token params (not the query body).

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

func (*GetSystemAPITokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get system API token params

func (*GetSystemAPITokenParams) WithTimeout

WithTimeout adds the timeout to the get system API token params

func (*GetSystemAPITokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSystemAPITokenReader

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

GetSystemAPITokenReader is a Reader for the GetSystemAPIToken structure.

func (*GetSystemAPITokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSystemRoleOK

type GetSystemRoleOK struct {
	Payload any
}

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

Role resource (k8s.io/api/rbac/v1.Role) or its underlying Kubernetes resources

func NewGetSystemRoleOK

func NewGetSystemRoleOK() *GetSystemRoleOK

NewGetSystemRoleOK creates a GetSystemRoleOK with default headers values

func (*GetSystemRoleOK) Code

func (o *GetSystemRoleOK) Code() int

Code gets the status code for the get system role o k response

func (*GetSystemRoleOK) Error

func (o *GetSystemRoleOK) Error() string

func (*GetSystemRoleOK) GetPayload

func (o *GetSystemRoleOK) GetPayload() any

func (*GetSystemRoleOK) IsClientError

func (o *GetSystemRoleOK) IsClientError() bool

IsClientError returns true when this get system role o k response has a 4xx status code

func (*GetSystemRoleOK) IsCode

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

IsCode returns true when this get system role o k response a status code equal to that given

func (*GetSystemRoleOK) IsRedirect

func (o *GetSystemRoleOK) IsRedirect() bool

IsRedirect returns true when this get system role o k response has a 3xx status code

func (*GetSystemRoleOK) IsServerError

func (o *GetSystemRoleOK) IsServerError() bool

IsServerError returns true when this get system role o k response has a 5xx status code

func (*GetSystemRoleOK) IsSuccess

func (o *GetSystemRoleOK) IsSuccess() bool

IsSuccess returns true when this get system role o k response has a 2xx status code

func (*GetSystemRoleOK) String

func (o *GetSystemRoleOK) String() string

type GetSystemRoleParams

type GetSystemRoleParams struct {

	/* Role.

	   Role name
	*/
	Role string

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

GetSystemRoleParams contains all the parameters to send to the API endpoint

for the get system role operation.

Typically these are written to a http.Request.

func NewGetSystemRoleParams

func NewGetSystemRoleParams() *GetSystemRoleParams

NewGetSystemRoleParams creates a new GetSystemRoleParams 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 NewGetSystemRoleParamsWithContext

func NewGetSystemRoleParamsWithContext(ctx context.Context) *GetSystemRoleParams

NewGetSystemRoleParamsWithContext creates a new GetSystemRoleParams object with the ability to set a context for a request.

func NewGetSystemRoleParamsWithHTTPClient

func NewGetSystemRoleParamsWithHTTPClient(client *http.Client) *GetSystemRoleParams

NewGetSystemRoleParamsWithHTTPClient creates a new GetSystemRoleParams object with the ability to set a custom HTTPClient for a request.

func NewGetSystemRoleParamsWithTimeout

func NewGetSystemRoleParamsWithTimeout(timeout time.Duration) *GetSystemRoleParams

NewGetSystemRoleParamsWithTimeout creates a new GetSystemRoleParams object with the ability to set a timeout on a request.

func (*GetSystemRoleParams) SetContext

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

SetContext adds the context to the get system role params

func (*GetSystemRoleParams) SetDefaults

func (o *GetSystemRoleParams) SetDefaults()

SetDefaults hydrates default values in the get system role params (not the query body).

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

func (*GetSystemRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get system role params

func (*GetSystemRoleParams) SetRole

func (o *GetSystemRoleParams) SetRole(role string)

SetRole adds the role to the get system role params

func (*GetSystemRoleParams) SetTimeout

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

SetTimeout adds the timeout to the get system role params

func (*GetSystemRoleParams) WithContext

WithContext adds the context to the get system role params

func (*GetSystemRoleParams) WithDefaults

func (o *GetSystemRoleParams) WithDefaults() *GetSystemRoleParams

WithDefaults hydrates default values in the get system role params (not the query body).

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

func (*GetSystemRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get system role params

func (*GetSystemRoleParams) WithRole

func (o *GetSystemRoleParams) WithRole(role string) *GetSystemRoleParams

WithRole adds the role to the get system role params

func (*GetSystemRoleParams) WithTimeout

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

WithTimeout adds the timeout to the get system role params

func (*GetSystemRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSystemRoleReader

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

GetSystemRoleReader is a Reader for the GetSystemRole structure.

func (*GetSystemRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GrantOK

type GrantOK struct {
	Payload any
}

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

Role resource (github.com/akuity/kargo/api/rbac/v1alpha1.Role)

func NewGrantOK

func NewGrantOK() *GrantOK

NewGrantOK creates a GrantOK with default headers values

func (*GrantOK) Code

func (o *GrantOK) Code() int

Code gets the status code for the grant o k response

func (*GrantOK) Error

func (o *GrantOK) Error() string

func (*GrantOK) GetPayload

func (o *GrantOK) GetPayload() any

func (*GrantOK) IsClientError

func (o *GrantOK) IsClientError() bool

IsClientError returns true when this grant o k response has a 4xx status code

func (*GrantOK) IsCode

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

IsCode returns true when this grant o k response a status code equal to that given

func (*GrantOK) IsRedirect

func (o *GrantOK) IsRedirect() bool

IsRedirect returns true when this grant o k response has a 3xx status code

func (*GrantOK) IsServerError

func (o *GrantOK) IsServerError() bool

IsServerError returns true when this grant o k response has a 5xx status code

func (*GrantOK) IsSuccess

func (o *GrantOK) IsSuccess() bool

IsSuccess returns true when this grant o k response has a 2xx status code

func (*GrantOK) String

func (o *GrantOK) String() string

type GrantParams

type GrantParams struct {

	/* Body.

	   Grant request
	*/
	Body *models.GrantRequest

	/* Project.

	   Project name
	*/
	Project string

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

GrantParams contains all the parameters to send to the API endpoint

for the grant operation.

Typically these are written to a http.Request.

func NewGrantParams

func NewGrantParams() *GrantParams

NewGrantParams creates a new GrantParams 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 NewGrantParamsWithContext

func NewGrantParamsWithContext(ctx context.Context) *GrantParams

NewGrantParamsWithContext creates a new GrantParams object with the ability to set a context for a request.

func NewGrantParamsWithHTTPClient

func NewGrantParamsWithHTTPClient(client *http.Client) *GrantParams

NewGrantParamsWithHTTPClient creates a new GrantParams object with the ability to set a custom HTTPClient for a request.

func NewGrantParamsWithTimeout

func NewGrantParamsWithTimeout(timeout time.Duration) *GrantParams

NewGrantParamsWithTimeout creates a new GrantParams object with the ability to set a timeout on a request.

func (*GrantParams) SetBody

func (o *GrantParams) SetBody(body *models.GrantRequest)

SetBody adds the body to the grant params

func (*GrantParams) SetContext

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

SetContext adds the context to the grant params

func (*GrantParams) SetDefaults

func (o *GrantParams) SetDefaults()

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

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

func (*GrantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the grant params

func (*GrantParams) SetProject

func (o *GrantParams) SetProject(project string)

SetProject adds the project to the grant params

func (*GrantParams) SetTimeout

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

SetTimeout adds the timeout to the grant params

func (*GrantParams) WithBody

func (o *GrantParams) WithBody(body *models.GrantRequest) *GrantParams

WithBody adds the body to the grant params

func (*GrantParams) WithContext

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

WithContext adds the context to the grant params

func (*GrantParams) WithDefaults

func (o *GrantParams) WithDefaults() *GrantParams

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

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

func (*GrantParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the grant params

func (*GrantParams) WithProject

func (o *GrantParams) WithProject(project string) *GrantParams

WithProject adds the project to the grant params

func (*GrantParams) WithTimeout

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

WithTimeout adds the timeout to the grant params

func (*GrantParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GrantReader

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

GrantReader is a Reader for the Grant structure.

func (*GrantReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProjectAPITokensOK

type ListProjectAPITokensOK struct {
	Payload any
}

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

SecretList resource (k8s.io/api/core/v1.SecretList)

func NewListProjectAPITokensOK

func NewListProjectAPITokensOK() *ListProjectAPITokensOK

NewListProjectAPITokensOK creates a ListProjectAPITokensOK with default headers values

func (*ListProjectAPITokensOK) Code

func (o *ListProjectAPITokensOK) Code() int

Code gets the status code for the list project Api tokens o k response

func (*ListProjectAPITokensOK) Error

func (o *ListProjectAPITokensOK) Error() string

func (*ListProjectAPITokensOK) GetPayload

func (o *ListProjectAPITokensOK) GetPayload() any

func (*ListProjectAPITokensOK) IsClientError

func (o *ListProjectAPITokensOK) IsClientError() bool

IsClientError returns true when this list project Api tokens o k response has a 4xx status code

func (*ListProjectAPITokensOK) IsCode

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

IsCode returns true when this list project Api tokens o k response a status code equal to that given

func (*ListProjectAPITokensOK) IsRedirect

func (o *ListProjectAPITokensOK) IsRedirect() bool

IsRedirect returns true when this list project Api tokens o k response has a 3xx status code

func (*ListProjectAPITokensOK) IsServerError

func (o *ListProjectAPITokensOK) IsServerError() bool

IsServerError returns true when this list project Api tokens o k response has a 5xx status code

func (*ListProjectAPITokensOK) IsSuccess

func (o *ListProjectAPITokensOK) IsSuccess() bool

IsSuccess returns true when this list project Api tokens o k response has a 2xx status code

func (*ListProjectAPITokensOK) String

func (o *ListProjectAPITokensOK) String() string

type ListProjectAPITokensParams

type ListProjectAPITokensParams struct {

	/* Project.

	   Project name
	*/
	Project string

	/* Role.

	   Role name filter
	*/
	Role *string

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

ListProjectAPITokensParams contains all the parameters to send to the API endpoint

for the list project API tokens operation.

Typically these are written to a http.Request.

func NewListProjectAPITokensParams

func NewListProjectAPITokensParams() *ListProjectAPITokensParams

NewListProjectAPITokensParams creates a new ListProjectAPITokensParams 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 NewListProjectAPITokensParamsWithContext

func NewListProjectAPITokensParamsWithContext(ctx context.Context) *ListProjectAPITokensParams

NewListProjectAPITokensParamsWithContext creates a new ListProjectAPITokensParams object with the ability to set a context for a request.

func NewListProjectAPITokensParamsWithHTTPClient

func NewListProjectAPITokensParamsWithHTTPClient(client *http.Client) *ListProjectAPITokensParams

NewListProjectAPITokensParamsWithHTTPClient creates a new ListProjectAPITokensParams object with the ability to set a custom HTTPClient for a request.

func NewListProjectAPITokensParamsWithTimeout

func NewListProjectAPITokensParamsWithTimeout(timeout time.Duration) *ListProjectAPITokensParams

NewListProjectAPITokensParamsWithTimeout creates a new ListProjectAPITokensParams object with the ability to set a timeout on a request.

func (*ListProjectAPITokensParams) SetContext

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

SetContext adds the context to the list project API tokens params

func (*ListProjectAPITokensParams) SetDefaults

func (o *ListProjectAPITokensParams) SetDefaults()

SetDefaults hydrates default values in the list project API tokens params (not the query body).

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

func (*ListProjectAPITokensParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list project API tokens params

func (*ListProjectAPITokensParams) SetProject

func (o *ListProjectAPITokensParams) SetProject(project string)

SetProject adds the project to the list project API tokens params

func (*ListProjectAPITokensParams) SetRole

func (o *ListProjectAPITokensParams) SetRole(role *string)

SetRole adds the role to the list project API tokens params

func (*ListProjectAPITokensParams) SetTimeout

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

SetTimeout adds the timeout to the list project API tokens params

func (*ListProjectAPITokensParams) WithContext

WithContext adds the context to the list project API tokens params

func (*ListProjectAPITokensParams) WithDefaults

WithDefaults hydrates default values in the list project API tokens params (not the query body).

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

func (*ListProjectAPITokensParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list project API tokens params

func (*ListProjectAPITokensParams) WithProject

WithProject adds the project to the list project API tokens params

func (*ListProjectAPITokensParams) WithRole

WithRole adds the role to the list project API tokens params

func (*ListProjectAPITokensParams) WithTimeout

WithTimeout adds the timeout to the list project API tokens params

func (*ListProjectAPITokensParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListProjectAPITokensReader

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

ListProjectAPITokensReader is a Reader for the ListProjectAPITokens structure.

func (*ListProjectAPITokensReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProjectRolesOK

type ListProjectRolesOK struct {
	Payload any
}

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

RoleList custom resource (github.com/akuity/kargo/api/rbac/v1alpha1.RoleList)

func NewListProjectRolesOK

func NewListProjectRolesOK() *ListProjectRolesOK

NewListProjectRolesOK creates a ListProjectRolesOK with default headers values

func (*ListProjectRolesOK) Code

func (o *ListProjectRolesOK) Code() int

Code gets the status code for the list project roles o k response

func (*ListProjectRolesOK) Error

func (o *ListProjectRolesOK) Error() string

func (*ListProjectRolesOK) GetPayload

func (o *ListProjectRolesOK) GetPayload() any

func (*ListProjectRolesOK) IsClientError

func (o *ListProjectRolesOK) IsClientError() bool

IsClientError returns true when this list project roles o k response has a 4xx status code

func (*ListProjectRolesOK) IsCode

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

IsCode returns true when this list project roles o k response a status code equal to that given

func (*ListProjectRolesOK) IsRedirect

func (o *ListProjectRolesOK) IsRedirect() bool

IsRedirect returns true when this list project roles o k response has a 3xx status code

func (*ListProjectRolesOK) IsServerError

func (o *ListProjectRolesOK) IsServerError() bool

IsServerError returns true when this list project roles o k response has a 5xx status code

func (*ListProjectRolesOK) IsSuccess

func (o *ListProjectRolesOK) IsSuccess() bool

IsSuccess returns true when this list project roles o k response has a 2xx status code

func (*ListProjectRolesOK) String

func (o *ListProjectRolesOK) String() string

type ListProjectRolesParams

type ListProjectRolesParams struct {

	/* Project.

	   Project name
	*/
	Project string

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

ListProjectRolesParams contains all the parameters to send to the API endpoint

for the list project roles operation.

Typically these are written to a http.Request.

func NewListProjectRolesParams

func NewListProjectRolesParams() *ListProjectRolesParams

NewListProjectRolesParams creates a new ListProjectRolesParams 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 NewListProjectRolesParamsWithContext

func NewListProjectRolesParamsWithContext(ctx context.Context) *ListProjectRolesParams

NewListProjectRolesParamsWithContext creates a new ListProjectRolesParams object with the ability to set a context for a request.

func NewListProjectRolesParamsWithHTTPClient

func NewListProjectRolesParamsWithHTTPClient(client *http.Client) *ListProjectRolesParams

NewListProjectRolesParamsWithHTTPClient creates a new ListProjectRolesParams object with the ability to set a custom HTTPClient for a request.

func NewListProjectRolesParamsWithTimeout

func NewListProjectRolesParamsWithTimeout(timeout time.Duration) *ListProjectRolesParams

NewListProjectRolesParamsWithTimeout creates a new ListProjectRolesParams object with the ability to set a timeout on a request.

func (*ListProjectRolesParams) SetContext

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

SetContext adds the context to the list project roles params

func (*ListProjectRolesParams) SetDefaults

func (o *ListProjectRolesParams) SetDefaults()

SetDefaults hydrates default values in the list project roles params (not the query body).

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

func (*ListProjectRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list project roles params

func (*ListProjectRolesParams) SetProject

func (o *ListProjectRolesParams) SetProject(project string)

SetProject adds the project to the list project roles params

func (*ListProjectRolesParams) SetTimeout

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

SetTimeout adds the timeout to the list project roles params

func (*ListProjectRolesParams) WithContext

WithContext adds the context to the list project roles params

func (*ListProjectRolesParams) WithDefaults

WithDefaults hydrates default values in the list project roles params (not the query body).

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

func (*ListProjectRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list project roles params

func (*ListProjectRolesParams) WithProject

func (o *ListProjectRolesParams) WithProject(project string) *ListProjectRolesParams

WithProject adds the project to the list project roles params

func (*ListProjectRolesParams) WithTimeout

WithTimeout adds the timeout to the list project roles params

func (*ListProjectRolesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListProjectRolesReader

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

ListProjectRolesReader is a Reader for the ListProjectRoles structure.

func (*ListProjectRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListSystemAPITokensOK

type ListSystemAPITokensOK struct {
	Payload any
}

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

SecretList resource (k8s.io/api/core/v1.SecretList)

func NewListSystemAPITokensOK

func NewListSystemAPITokensOK() *ListSystemAPITokensOK

NewListSystemAPITokensOK creates a ListSystemAPITokensOK with default headers values

func (*ListSystemAPITokensOK) Code

func (o *ListSystemAPITokensOK) Code() int

Code gets the status code for the list system Api tokens o k response

func (*ListSystemAPITokensOK) Error

func (o *ListSystemAPITokensOK) Error() string

func (*ListSystemAPITokensOK) GetPayload

func (o *ListSystemAPITokensOK) GetPayload() any

func (*ListSystemAPITokensOK) IsClientError

func (o *ListSystemAPITokensOK) IsClientError() bool

IsClientError returns true when this list system Api tokens o k response has a 4xx status code

func (*ListSystemAPITokensOK) IsCode

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

IsCode returns true when this list system Api tokens o k response a status code equal to that given

func (*ListSystemAPITokensOK) IsRedirect

func (o *ListSystemAPITokensOK) IsRedirect() bool

IsRedirect returns true when this list system Api tokens o k response has a 3xx status code

func (*ListSystemAPITokensOK) IsServerError

func (o *ListSystemAPITokensOK) IsServerError() bool

IsServerError returns true when this list system Api tokens o k response has a 5xx status code

func (*ListSystemAPITokensOK) IsSuccess

func (o *ListSystemAPITokensOK) IsSuccess() bool

IsSuccess returns true when this list system Api tokens o k response has a 2xx status code

func (*ListSystemAPITokensOK) String

func (o *ListSystemAPITokensOK) String() string

type ListSystemAPITokensParams

type ListSystemAPITokensParams struct {

	/* Role.

	   Role name filter
	*/
	Role *string

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

ListSystemAPITokensParams contains all the parameters to send to the API endpoint

for the list system API tokens operation.

Typically these are written to a http.Request.

func NewListSystemAPITokensParams

func NewListSystemAPITokensParams() *ListSystemAPITokensParams

NewListSystemAPITokensParams creates a new ListSystemAPITokensParams 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 NewListSystemAPITokensParamsWithContext

func NewListSystemAPITokensParamsWithContext(ctx context.Context) *ListSystemAPITokensParams

NewListSystemAPITokensParamsWithContext creates a new ListSystemAPITokensParams object with the ability to set a context for a request.

func NewListSystemAPITokensParamsWithHTTPClient

func NewListSystemAPITokensParamsWithHTTPClient(client *http.Client) *ListSystemAPITokensParams

NewListSystemAPITokensParamsWithHTTPClient creates a new ListSystemAPITokensParams object with the ability to set a custom HTTPClient for a request.

func NewListSystemAPITokensParamsWithTimeout

func NewListSystemAPITokensParamsWithTimeout(timeout time.Duration) *ListSystemAPITokensParams

NewListSystemAPITokensParamsWithTimeout creates a new ListSystemAPITokensParams object with the ability to set a timeout on a request.

func (*ListSystemAPITokensParams) SetContext

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

SetContext adds the context to the list system API tokens params

func (*ListSystemAPITokensParams) SetDefaults

func (o *ListSystemAPITokensParams) SetDefaults()

SetDefaults hydrates default values in the list system API tokens params (not the query body).

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

func (*ListSystemAPITokensParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list system API tokens params

func (*ListSystemAPITokensParams) SetRole

func (o *ListSystemAPITokensParams) SetRole(role *string)

SetRole adds the role to the list system API tokens params

func (*ListSystemAPITokensParams) SetTimeout

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

SetTimeout adds the timeout to the list system API tokens params

func (*ListSystemAPITokensParams) WithContext

WithContext adds the context to the list system API tokens params

func (*ListSystemAPITokensParams) WithDefaults

WithDefaults hydrates default values in the list system API tokens params (not the query body).

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

func (*ListSystemAPITokensParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list system API tokens params

func (*ListSystemAPITokensParams) WithRole

WithRole adds the role to the list system API tokens params

func (*ListSystemAPITokensParams) WithTimeout

WithTimeout adds the timeout to the list system API tokens params

func (*ListSystemAPITokensParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListSystemAPITokensReader

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

ListSystemAPITokensReader is a Reader for the ListSystemAPITokens structure.

func (*ListSystemAPITokensReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListSystemRolesOK

type ListSystemRolesOK struct {
	Payload any
}

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

RoleList custom resource (github.com/akuity/kargo/api/rbac/v1alpha1.RoleList)

func NewListSystemRolesOK

func NewListSystemRolesOK() *ListSystemRolesOK

NewListSystemRolesOK creates a ListSystemRolesOK with default headers values

func (*ListSystemRolesOK) Code

func (o *ListSystemRolesOK) Code() int

Code gets the status code for the list system roles o k response

func (*ListSystemRolesOK) Error

func (o *ListSystemRolesOK) Error() string

func (*ListSystemRolesOK) GetPayload

func (o *ListSystemRolesOK) GetPayload() any

func (*ListSystemRolesOK) IsClientError

func (o *ListSystemRolesOK) IsClientError() bool

IsClientError returns true when this list system roles o k response has a 4xx status code

func (*ListSystemRolesOK) IsCode

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

IsCode returns true when this list system roles o k response a status code equal to that given

func (*ListSystemRolesOK) IsRedirect

func (o *ListSystemRolesOK) IsRedirect() bool

IsRedirect returns true when this list system roles o k response has a 3xx status code

func (*ListSystemRolesOK) IsServerError

func (o *ListSystemRolesOK) IsServerError() bool

IsServerError returns true when this list system roles o k response has a 5xx status code

func (*ListSystemRolesOK) IsSuccess

func (o *ListSystemRolesOK) IsSuccess() bool

IsSuccess returns true when this list system roles o k response has a 2xx status code

func (*ListSystemRolesOK) String

func (o *ListSystemRolesOK) String() string

type ListSystemRolesParams

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

ListSystemRolesParams contains all the parameters to send to the API endpoint

for the list system roles operation.

Typically these are written to a http.Request.

func NewListSystemRolesParams

func NewListSystemRolesParams() *ListSystemRolesParams

NewListSystemRolesParams creates a new ListSystemRolesParams 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 NewListSystemRolesParamsWithContext

func NewListSystemRolesParamsWithContext(ctx context.Context) *ListSystemRolesParams

NewListSystemRolesParamsWithContext creates a new ListSystemRolesParams object with the ability to set a context for a request.

func NewListSystemRolesParamsWithHTTPClient

func NewListSystemRolesParamsWithHTTPClient(client *http.Client) *ListSystemRolesParams

NewListSystemRolesParamsWithHTTPClient creates a new ListSystemRolesParams object with the ability to set a custom HTTPClient for a request.

func NewListSystemRolesParamsWithTimeout

func NewListSystemRolesParamsWithTimeout(timeout time.Duration) *ListSystemRolesParams

NewListSystemRolesParamsWithTimeout creates a new ListSystemRolesParams object with the ability to set a timeout on a request.

func (*ListSystemRolesParams) SetContext

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

SetContext adds the context to the list system roles params

func (*ListSystemRolesParams) SetDefaults

func (o *ListSystemRolesParams) SetDefaults()

SetDefaults hydrates default values in the list system roles params (not the query body).

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

func (*ListSystemRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list system roles params

func (*ListSystemRolesParams) SetTimeout

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

SetTimeout adds the timeout to the list system roles params

func (*ListSystemRolesParams) WithContext

WithContext adds the context to the list system roles params

func (*ListSystemRolesParams) WithDefaults

func (o *ListSystemRolesParams) WithDefaults() *ListSystemRolesParams

WithDefaults hydrates default values in the list system roles params (not the query body).

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

func (*ListSystemRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list system roles params

func (*ListSystemRolesParams) WithTimeout

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

WithTimeout adds the timeout to the list system roles params

func (*ListSystemRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListSystemRolesReader

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

ListSystemRolesReader is a Reader for the ListSystemRoles structure.

func (*ListSystemRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeOK

type RevokeOK struct {
	Payload any
}

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

Role resource (github.com/akuity/kargo/api/rbac/v1alpha1.Role)

func NewRevokeOK

func NewRevokeOK() *RevokeOK

NewRevokeOK creates a RevokeOK with default headers values

func (*RevokeOK) Code

func (o *RevokeOK) Code() int

Code gets the status code for the revoke o k response

func (*RevokeOK) Error

func (o *RevokeOK) Error() string

func (*RevokeOK) GetPayload

func (o *RevokeOK) GetPayload() any

func (*RevokeOK) IsClientError

func (o *RevokeOK) IsClientError() bool

IsClientError returns true when this revoke o k response has a 4xx status code

func (*RevokeOK) IsCode

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

IsCode returns true when this revoke o k response a status code equal to that given

func (*RevokeOK) IsRedirect

func (o *RevokeOK) IsRedirect() bool

IsRedirect returns true when this revoke o k response has a 3xx status code

func (*RevokeOK) IsServerError

func (o *RevokeOK) IsServerError() bool

IsServerError returns true when this revoke o k response has a 5xx status code

func (*RevokeOK) IsSuccess

func (o *RevokeOK) IsSuccess() bool

IsSuccess returns true when this revoke o k response has a 2xx status code

func (*RevokeOK) String

func (o *RevokeOK) String() string

type RevokeParams

type RevokeParams struct {

	/* Body.

	   Revoke request
	*/
	Body *models.RevokeRequest

	/* Project.

	   Project name
	*/
	Project string

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

RevokeParams contains all the parameters to send to the API endpoint

for the revoke operation.

Typically these are written to a http.Request.

func NewRevokeParams

func NewRevokeParams() *RevokeParams

NewRevokeParams creates a new RevokeParams 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 NewRevokeParamsWithContext

func NewRevokeParamsWithContext(ctx context.Context) *RevokeParams

NewRevokeParamsWithContext creates a new RevokeParams object with the ability to set a context for a request.

func NewRevokeParamsWithHTTPClient

func NewRevokeParamsWithHTTPClient(client *http.Client) *RevokeParams

NewRevokeParamsWithHTTPClient creates a new RevokeParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeParamsWithTimeout

func NewRevokeParamsWithTimeout(timeout time.Duration) *RevokeParams

NewRevokeParamsWithTimeout creates a new RevokeParams object with the ability to set a timeout on a request.

func (*RevokeParams) SetBody

func (o *RevokeParams) SetBody(body *models.RevokeRequest)

SetBody adds the body to the revoke params

func (*RevokeParams) SetContext

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

SetContext adds the context to the revoke params

func (*RevokeParams) SetDefaults

func (o *RevokeParams) SetDefaults()

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

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

func (*RevokeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) SetProject

func (o *RevokeParams) SetProject(project string)

SetProject adds the project to the revoke params

func (*RevokeParams) SetTimeout

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

SetTimeout adds the timeout to the revoke params

func (*RevokeParams) WithBody

func (o *RevokeParams) WithBody(body *models.RevokeRequest) *RevokeParams

WithBody adds the body to the revoke params

func (*RevokeParams) WithContext

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

WithContext adds the context to the revoke params

func (*RevokeParams) WithDefaults

func (o *RevokeParams) WithDefaults() *RevokeParams

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

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

func (*RevokeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) WithProject

func (o *RevokeParams) WithProject(project string) *RevokeParams

WithProject adds the project to the revoke params

func (*RevokeParams) WithTimeout

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

WithTimeout adds the timeout to the revoke params

func (*RevokeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RevokeReader

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

RevokeReader is a Reader for the Revoke structure.

func (*RevokeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRoleOK

type UpdateRoleOK struct {
	Payload any
}

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

Role resource (github.com/akuity/kargo/api/rbac/v1alpha1.Role)

func NewUpdateRoleOK

func NewUpdateRoleOK() *UpdateRoleOK

NewUpdateRoleOK creates a UpdateRoleOK with default headers values

func (*UpdateRoleOK) Code

func (o *UpdateRoleOK) Code() int

Code gets the status code for the update role o k response

func (*UpdateRoleOK) Error

func (o *UpdateRoleOK) Error() string

func (*UpdateRoleOK) GetPayload

func (o *UpdateRoleOK) GetPayload() any

func (*UpdateRoleOK) IsClientError

func (o *UpdateRoleOK) IsClientError() bool

IsClientError returns true when this update role o k response has a 4xx status code

func (*UpdateRoleOK) IsCode

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

IsCode returns true when this update role o k response a status code equal to that given

func (*UpdateRoleOK) IsRedirect

func (o *UpdateRoleOK) IsRedirect() bool

IsRedirect returns true when this update role o k response has a 3xx status code

func (*UpdateRoleOK) IsServerError

func (o *UpdateRoleOK) IsServerError() bool

IsServerError returns true when this update role o k response has a 5xx status code

func (*UpdateRoleOK) IsSuccess

func (o *UpdateRoleOK) IsSuccess() bool

IsSuccess returns true when this update role o k response has a 2xx status code

func (*UpdateRoleOK) String

func (o *UpdateRoleOK) String() string

type UpdateRoleParams

type UpdateRoleParams struct {

	/* Body.

	   Role resource (github.com/akuity/kargo/api/rbac/v1alpha1.Role)
	*/
	Body any

	/* Project.

	   Project name
	*/
	Project string

	/* Role.

	   Role name
	*/
	Role string

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

UpdateRoleParams contains all the parameters to send to the API endpoint

for the update role operation.

Typically these are written to a http.Request.

func NewUpdateRoleParams

func NewUpdateRoleParams() *UpdateRoleParams

NewUpdateRoleParams creates a new UpdateRoleParams 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 NewUpdateRoleParamsWithContext

func NewUpdateRoleParamsWithContext(ctx context.Context) *UpdateRoleParams

NewUpdateRoleParamsWithContext creates a new UpdateRoleParams object with the ability to set a context for a request.

func NewUpdateRoleParamsWithHTTPClient

func NewUpdateRoleParamsWithHTTPClient(client *http.Client) *UpdateRoleParams

NewUpdateRoleParamsWithHTTPClient creates a new UpdateRoleParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateRoleParamsWithTimeout

func NewUpdateRoleParamsWithTimeout(timeout time.Duration) *UpdateRoleParams

NewUpdateRoleParamsWithTimeout creates a new UpdateRoleParams object with the ability to set a timeout on a request.

func (*UpdateRoleParams) SetBody

func (o *UpdateRoleParams) SetBody(body any)

SetBody adds the body to the update role params

func (*UpdateRoleParams) SetContext

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

SetContext adds the context to the update role params

func (*UpdateRoleParams) SetDefaults

func (o *UpdateRoleParams) SetDefaults()

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

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

func (*UpdateRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update role params

func (*UpdateRoleParams) SetProject

func (o *UpdateRoleParams) SetProject(project string)

SetProject adds the project to the update role params

func (*UpdateRoleParams) SetRole

func (o *UpdateRoleParams) SetRole(role string)

SetRole adds the role to the update role params

func (*UpdateRoleParams) SetTimeout

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

SetTimeout adds the timeout to the update role params

func (*UpdateRoleParams) WithBody

func (o *UpdateRoleParams) WithBody(body any) *UpdateRoleParams

WithBody adds the body to the update role params

func (*UpdateRoleParams) WithContext

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

WithContext adds the context to the update role params

func (*UpdateRoleParams) WithDefaults

func (o *UpdateRoleParams) WithDefaults() *UpdateRoleParams

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

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

func (*UpdateRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update role params

func (*UpdateRoleParams) WithProject

func (o *UpdateRoleParams) WithProject(project string) *UpdateRoleParams

WithProject adds the project to the update role params

func (*UpdateRoleParams) WithRole

func (o *UpdateRoleParams) WithRole(role string) *UpdateRoleParams

WithRole adds the role to the update role params

func (*UpdateRoleParams) WithTimeout

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

WithTimeout adds the timeout to the update role params

func (*UpdateRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateRoleReader

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

UpdateRoleReader is a Reader for the UpdateRole structure.

func (*UpdateRoleReader) ReadResponse

func (o *UpdateRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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