Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateProjectAPIToken(params *CreateProjectAPITokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateProjectAPITokenCreated, error)
- func (a *Client) CreateProjectRole(params *CreateProjectRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateProjectRoleCreated, error)
- func (a *Client) CreateSystemAPIToken(params *CreateSystemAPITokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateSystemAPITokenCreated, error)
- func (a *Client) DeleteProjectAPIToken(params *DeleteProjectAPITokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteProjectAPITokenNoContent, error)
- func (a *Client) DeleteProjectRole(params *DeleteProjectRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteProjectRoleNoContent, error)
- func (a *Client) DeleteSystemAPIToken(params *DeleteSystemAPITokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSystemAPITokenNoContent, error)
- func (a *Client) GetProjectAPIToken(params *GetProjectAPITokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProjectAPITokenOK, error)
- func (a *Client) GetProjectRole(params *GetProjectRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProjectRoleOK, error)
- func (a *Client) GetSystemAPIToken(params *GetSystemAPITokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSystemAPITokenOK, error)
- func (a *Client) GetSystemRole(params *GetSystemRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSystemRoleOK, error)
- func (a *Client) Grant(params *GrantParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GrantOK, error)
- func (a *Client) ListProjectAPITokens(params *ListProjectAPITokensParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListProjectAPITokensOK, error)
- func (a *Client) ListProjectRoles(params *ListProjectRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListProjectRolesOK, error)
- func (a *Client) ListSystemAPITokens(params *ListSystemAPITokensParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListSystemAPITokensOK, error)
- func (a *Client) ListSystemRoles(params *ListSystemRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListSystemRolesOK, error)
- func (a *Client) Revoke(params *RevokeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RevokeOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateRole(params *UpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateRoleOK, error)
- type ClientOption
- type ClientService
- type CreateProjectAPITokenCreated
- func (o *CreateProjectAPITokenCreated) Code() int
- func (o *CreateProjectAPITokenCreated) Error() string
- func (o *CreateProjectAPITokenCreated) GetPayload() any
- func (o *CreateProjectAPITokenCreated) IsClientError() bool
- func (o *CreateProjectAPITokenCreated) IsCode(code int) bool
- func (o *CreateProjectAPITokenCreated) IsRedirect() bool
- func (o *CreateProjectAPITokenCreated) IsServerError() bool
- func (o *CreateProjectAPITokenCreated) IsSuccess() bool
- func (o *CreateProjectAPITokenCreated) String() string
- type CreateProjectAPITokenParams
- func NewCreateProjectAPITokenParams() *CreateProjectAPITokenParams
- func NewCreateProjectAPITokenParamsWithContext(ctx context.Context) *CreateProjectAPITokenParams
- func NewCreateProjectAPITokenParamsWithHTTPClient(client *http.Client) *CreateProjectAPITokenParams
- func NewCreateProjectAPITokenParamsWithTimeout(timeout time.Duration) *CreateProjectAPITokenParams
- func (o *CreateProjectAPITokenParams) SetBody(body *models.CreateAPITokenRequest)
- func (o *CreateProjectAPITokenParams) SetContext(ctx context.Context)
- func (o *CreateProjectAPITokenParams) SetDefaults()
- func (o *CreateProjectAPITokenParams) SetHTTPClient(client *http.Client)
- func (o *CreateProjectAPITokenParams) SetProject(project string)
- func (o *CreateProjectAPITokenParams) SetRole(role string)
- func (o *CreateProjectAPITokenParams) SetTimeout(timeout time.Duration)
- func (o *CreateProjectAPITokenParams) WithBody(body *models.CreateAPITokenRequest) *CreateProjectAPITokenParams
- func (o *CreateProjectAPITokenParams) WithContext(ctx context.Context) *CreateProjectAPITokenParams
- func (o *CreateProjectAPITokenParams) WithDefaults() *CreateProjectAPITokenParams
- func (o *CreateProjectAPITokenParams) WithHTTPClient(client *http.Client) *CreateProjectAPITokenParams
- func (o *CreateProjectAPITokenParams) WithProject(project string) *CreateProjectAPITokenParams
- func (o *CreateProjectAPITokenParams) WithRole(role string) *CreateProjectAPITokenParams
- func (o *CreateProjectAPITokenParams) WithTimeout(timeout time.Duration) *CreateProjectAPITokenParams
- func (o *CreateProjectAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateProjectAPITokenReader
- type CreateProjectRoleCreated
- func (o *CreateProjectRoleCreated) Code() int
- func (o *CreateProjectRoleCreated) Error() string
- func (o *CreateProjectRoleCreated) GetPayload() any
- func (o *CreateProjectRoleCreated) IsClientError() bool
- func (o *CreateProjectRoleCreated) IsCode(code int) bool
- func (o *CreateProjectRoleCreated) IsRedirect() bool
- func (o *CreateProjectRoleCreated) IsServerError() bool
- func (o *CreateProjectRoleCreated) IsSuccess() bool
- func (o *CreateProjectRoleCreated) String() string
- type CreateProjectRoleParams
- func NewCreateProjectRoleParams() *CreateProjectRoleParams
- func NewCreateProjectRoleParamsWithContext(ctx context.Context) *CreateProjectRoleParams
- func NewCreateProjectRoleParamsWithHTTPClient(client *http.Client) *CreateProjectRoleParams
- func NewCreateProjectRoleParamsWithTimeout(timeout time.Duration) *CreateProjectRoleParams
- func (o *CreateProjectRoleParams) SetBody(body any)
- func (o *CreateProjectRoleParams) SetContext(ctx context.Context)
- func (o *CreateProjectRoleParams) SetDefaults()
- func (o *CreateProjectRoleParams) SetHTTPClient(client *http.Client)
- func (o *CreateProjectRoleParams) SetProject(project string)
- func (o *CreateProjectRoleParams) SetTimeout(timeout time.Duration)
- func (o *CreateProjectRoleParams) WithBody(body any) *CreateProjectRoleParams
- func (o *CreateProjectRoleParams) WithContext(ctx context.Context) *CreateProjectRoleParams
- func (o *CreateProjectRoleParams) WithDefaults() *CreateProjectRoleParams
- func (o *CreateProjectRoleParams) WithHTTPClient(client *http.Client) *CreateProjectRoleParams
- func (o *CreateProjectRoleParams) WithProject(project string) *CreateProjectRoleParams
- func (o *CreateProjectRoleParams) WithTimeout(timeout time.Duration) *CreateProjectRoleParams
- func (o *CreateProjectRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateProjectRoleReader
- type CreateSystemAPITokenCreated
- func (o *CreateSystemAPITokenCreated) Code() int
- func (o *CreateSystemAPITokenCreated) Error() string
- func (o *CreateSystemAPITokenCreated) GetPayload() any
- func (o *CreateSystemAPITokenCreated) IsClientError() bool
- func (o *CreateSystemAPITokenCreated) IsCode(code int) bool
- func (o *CreateSystemAPITokenCreated) IsRedirect() bool
- func (o *CreateSystemAPITokenCreated) IsServerError() bool
- func (o *CreateSystemAPITokenCreated) IsSuccess() bool
- func (o *CreateSystemAPITokenCreated) String() string
- type CreateSystemAPITokenParams
- func NewCreateSystemAPITokenParams() *CreateSystemAPITokenParams
- func NewCreateSystemAPITokenParamsWithContext(ctx context.Context) *CreateSystemAPITokenParams
- func NewCreateSystemAPITokenParamsWithHTTPClient(client *http.Client) *CreateSystemAPITokenParams
- func NewCreateSystemAPITokenParamsWithTimeout(timeout time.Duration) *CreateSystemAPITokenParams
- func (o *CreateSystemAPITokenParams) SetBody(body *models.CreateAPITokenRequest)
- func (o *CreateSystemAPITokenParams) SetContext(ctx context.Context)
- func (o *CreateSystemAPITokenParams) SetDefaults()
- func (o *CreateSystemAPITokenParams) SetHTTPClient(client *http.Client)
- func (o *CreateSystemAPITokenParams) SetRole(role string)
- func (o *CreateSystemAPITokenParams) SetTimeout(timeout time.Duration)
- func (o *CreateSystemAPITokenParams) WithBody(body *models.CreateAPITokenRequest) *CreateSystemAPITokenParams
- func (o *CreateSystemAPITokenParams) WithContext(ctx context.Context) *CreateSystemAPITokenParams
- func (o *CreateSystemAPITokenParams) WithDefaults() *CreateSystemAPITokenParams
- func (o *CreateSystemAPITokenParams) WithHTTPClient(client *http.Client) *CreateSystemAPITokenParams
- func (o *CreateSystemAPITokenParams) WithRole(role string) *CreateSystemAPITokenParams
- func (o *CreateSystemAPITokenParams) WithTimeout(timeout time.Duration) *CreateSystemAPITokenParams
- func (o *CreateSystemAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSystemAPITokenReader
- type DeleteProjectAPITokenNoContent
- func (o *DeleteProjectAPITokenNoContent) Code() int
- func (o *DeleteProjectAPITokenNoContent) Error() string
- func (o *DeleteProjectAPITokenNoContent) IsClientError() bool
- func (o *DeleteProjectAPITokenNoContent) IsCode(code int) bool
- func (o *DeleteProjectAPITokenNoContent) IsRedirect() bool
- func (o *DeleteProjectAPITokenNoContent) IsServerError() bool
- func (o *DeleteProjectAPITokenNoContent) IsSuccess() bool
- func (o *DeleteProjectAPITokenNoContent) String() string
- type DeleteProjectAPITokenParams
- func NewDeleteProjectAPITokenParams() *DeleteProjectAPITokenParams
- func NewDeleteProjectAPITokenParamsWithContext(ctx context.Context) *DeleteProjectAPITokenParams
- func NewDeleteProjectAPITokenParamsWithHTTPClient(client *http.Client) *DeleteProjectAPITokenParams
- func NewDeleteProjectAPITokenParamsWithTimeout(timeout time.Duration) *DeleteProjectAPITokenParams
- func (o *DeleteProjectAPITokenParams) SetApitoken(apitoken string)
- func (o *DeleteProjectAPITokenParams) SetContext(ctx context.Context)
- func (o *DeleteProjectAPITokenParams) SetDefaults()
- func (o *DeleteProjectAPITokenParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProjectAPITokenParams) SetProject(project string)
- func (o *DeleteProjectAPITokenParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProjectAPITokenParams) WithApitoken(apitoken string) *DeleteProjectAPITokenParams
- func (o *DeleteProjectAPITokenParams) WithContext(ctx context.Context) *DeleteProjectAPITokenParams
- func (o *DeleteProjectAPITokenParams) WithDefaults() *DeleteProjectAPITokenParams
- func (o *DeleteProjectAPITokenParams) WithHTTPClient(client *http.Client) *DeleteProjectAPITokenParams
- func (o *DeleteProjectAPITokenParams) WithProject(project string) *DeleteProjectAPITokenParams
- func (o *DeleteProjectAPITokenParams) WithTimeout(timeout time.Duration) *DeleteProjectAPITokenParams
- func (o *DeleteProjectAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProjectAPITokenReader
- type DeleteProjectRoleNoContent
- func (o *DeleteProjectRoleNoContent) Code() int
- func (o *DeleteProjectRoleNoContent) Error() string
- func (o *DeleteProjectRoleNoContent) IsClientError() bool
- func (o *DeleteProjectRoleNoContent) IsCode(code int) bool
- func (o *DeleteProjectRoleNoContent) IsRedirect() bool
- func (o *DeleteProjectRoleNoContent) IsServerError() bool
- func (o *DeleteProjectRoleNoContent) IsSuccess() bool
- func (o *DeleteProjectRoleNoContent) String() string
- type DeleteProjectRoleParams
- func NewDeleteProjectRoleParams() *DeleteProjectRoleParams
- func NewDeleteProjectRoleParamsWithContext(ctx context.Context) *DeleteProjectRoleParams
- func NewDeleteProjectRoleParamsWithHTTPClient(client *http.Client) *DeleteProjectRoleParams
- func NewDeleteProjectRoleParamsWithTimeout(timeout time.Duration) *DeleteProjectRoleParams
- func (o *DeleteProjectRoleParams) SetContext(ctx context.Context)
- func (o *DeleteProjectRoleParams) SetDefaults()
- func (o *DeleteProjectRoleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProjectRoleParams) SetProject(project string)
- func (o *DeleteProjectRoleParams) SetRole(role string)
- func (o *DeleteProjectRoleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProjectRoleParams) WithContext(ctx context.Context) *DeleteProjectRoleParams
- func (o *DeleteProjectRoleParams) WithDefaults() *DeleteProjectRoleParams
- func (o *DeleteProjectRoleParams) WithHTTPClient(client *http.Client) *DeleteProjectRoleParams
- func (o *DeleteProjectRoleParams) WithProject(project string) *DeleteProjectRoleParams
- func (o *DeleteProjectRoleParams) WithRole(role string) *DeleteProjectRoleParams
- func (o *DeleteProjectRoleParams) WithTimeout(timeout time.Duration) *DeleteProjectRoleParams
- func (o *DeleteProjectRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProjectRoleReader
- type DeleteSystemAPITokenNoContent
- func (o *DeleteSystemAPITokenNoContent) Code() int
- func (o *DeleteSystemAPITokenNoContent) Error() string
- func (o *DeleteSystemAPITokenNoContent) IsClientError() bool
- func (o *DeleteSystemAPITokenNoContent) IsCode(code int) bool
- func (o *DeleteSystemAPITokenNoContent) IsRedirect() bool
- func (o *DeleteSystemAPITokenNoContent) IsServerError() bool
- func (o *DeleteSystemAPITokenNoContent) IsSuccess() bool
- func (o *DeleteSystemAPITokenNoContent) String() string
- type DeleteSystemAPITokenParams
- func NewDeleteSystemAPITokenParams() *DeleteSystemAPITokenParams
- func NewDeleteSystemAPITokenParamsWithContext(ctx context.Context) *DeleteSystemAPITokenParams
- func NewDeleteSystemAPITokenParamsWithHTTPClient(client *http.Client) *DeleteSystemAPITokenParams
- func NewDeleteSystemAPITokenParamsWithTimeout(timeout time.Duration) *DeleteSystemAPITokenParams
- func (o *DeleteSystemAPITokenParams) SetApitoken(apitoken string)
- func (o *DeleteSystemAPITokenParams) SetContext(ctx context.Context)
- func (o *DeleteSystemAPITokenParams) SetDefaults()
- func (o *DeleteSystemAPITokenParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSystemAPITokenParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSystemAPITokenParams) WithApitoken(apitoken string) *DeleteSystemAPITokenParams
- func (o *DeleteSystemAPITokenParams) WithContext(ctx context.Context) *DeleteSystemAPITokenParams
- func (o *DeleteSystemAPITokenParams) WithDefaults() *DeleteSystemAPITokenParams
- func (o *DeleteSystemAPITokenParams) WithHTTPClient(client *http.Client) *DeleteSystemAPITokenParams
- func (o *DeleteSystemAPITokenParams) WithTimeout(timeout time.Duration) *DeleteSystemAPITokenParams
- func (o *DeleteSystemAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSystemAPITokenReader
- type GetProjectAPITokenOK
- func (o *GetProjectAPITokenOK) Code() int
- func (o *GetProjectAPITokenOK) Error() string
- func (o *GetProjectAPITokenOK) GetPayload() any
- func (o *GetProjectAPITokenOK) IsClientError() bool
- func (o *GetProjectAPITokenOK) IsCode(code int) bool
- func (o *GetProjectAPITokenOK) IsRedirect() bool
- func (o *GetProjectAPITokenOK) IsServerError() bool
- func (o *GetProjectAPITokenOK) IsSuccess() bool
- func (o *GetProjectAPITokenOK) String() string
- type GetProjectAPITokenParams
- func NewGetProjectAPITokenParams() *GetProjectAPITokenParams
- func NewGetProjectAPITokenParamsWithContext(ctx context.Context) *GetProjectAPITokenParams
- func NewGetProjectAPITokenParamsWithHTTPClient(client *http.Client) *GetProjectAPITokenParams
- func NewGetProjectAPITokenParamsWithTimeout(timeout time.Duration) *GetProjectAPITokenParams
- func (o *GetProjectAPITokenParams) SetApitoken(apitoken string)
- func (o *GetProjectAPITokenParams) SetContext(ctx context.Context)
- func (o *GetProjectAPITokenParams) SetDefaults()
- func (o *GetProjectAPITokenParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectAPITokenParams) SetProject(project string)
- func (o *GetProjectAPITokenParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectAPITokenParams) WithApitoken(apitoken string) *GetProjectAPITokenParams
- func (o *GetProjectAPITokenParams) WithContext(ctx context.Context) *GetProjectAPITokenParams
- func (o *GetProjectAPITokenParams) WithDefaults() *GetProjectAPITokenParams
- func (o *GetProjectAPITokenParams) WithHTTPClient(client *http.Client) *GetProjectAPITokenParams
- func (o *GetProjectAPITokenParams) WithProject(project string) *GetProjectAPITokenParams
- func (o *GetProjectAPITokenParams) WithTimeout(timeout time.Duration) *GetProjectAPITokenParams
- func (o *GetProjectAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectAPITokenReader
- type GetProjectRoleOK
- func (o *GetProjectRoleOK) Code() int
- func (o *GetProjectRoleOK) Error() string
- func (o *GetProjectRoleOK) GetPayload() any
- func (o *GetProjectRoleOK) IsClientError() bool
- func (o *GetProjectRoleOK) IsCode(code int) bool
- func (o *GetProjectRoleOK) IsRedirect() bool
- func (o *GetProjectRoleOK) IsServerError() bool
- func (o *GetProjectRoleOK) IsSuccess() bool
- func (o *GetProjectRoleOK) String() string
- type GetProjectRoleParams
- func NewGetProjectRoleParams() *GetProjectRoleParams
- func NewGetProjectRoleParamsWithContext(ctx context.Context) *GetProjectRoleParams
- func NewGetProjectRoleParamsWithHTTPClient(client *http.Client) *GetProjectRoleParams
- func NewGetProjectRoleParamsWithTimeout(timeout time.Duration) *GetProjectRoleParams
- func (o *GetProjectRoleParams) SetContext(ctx context.Context)
- func (o *GetProjectRoleParams) SetDefaults()
- func (o *GetProjectRoleParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectRoleParams) SetProject(project string)
- func (o *GetProjectRoleParams) SetRole(role string)
- func (o *GetProjectRoleParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectRoleParams) WithContext(ctx context.Context) *GetProjectRoleParams
- func (o *GetProjectRoleParams) WithDefaults() *GetProjectRoleParams
- func (o *GetProjectRoleParams) WithHTTPClient(client *http.Client) *GetProjectRoleParams
- func (o *GetProjectRoleParams) WithProject(project string) *GetProjectRoleParams
- func (o *GetProjectRoleParams) WithRole(role string) *GetProjectRoleParams
- func (o *GetProjectRoleParams) WithTimeout(timeout time.Duration) *GetProjectRoleParams
- func (o *GetProjectRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectRoleReader
- type GetSystemAPITokenOK
- func (o *GetSystemAPITokenOK) Code() int
- func (o *GetSystemAPITokenOK) Error() string
- func (o *GetSystemAPITokenOK) GetPayload() any
- func (o *GetSystemAPITokenOK) IsClientError() bool
- func (o *GetSystemAPITokenOK) IsCode(code int) bool
- func (o *GetSystemAPITokenOK) IsRedirect() bool
- func (o *GetSystemAPITokenOK) IsServerError() bool
- func (o *GetSystemAPITokenOK) IsSuccess() bool
- func (o *GetSystemAPITokenOK) String() string
- type GetSystemAPITokenParams
- func NewGetSystemAPITokenParams() *GetSystemAPITokenParams
- func NewGetSystemAPITokenParamsWithContext(ctx context.Context) *GetSystemAPITokenParams
- func NewGetSystemAPITokenParamsWithHTTPClient(client *http.Client) *GetSystemAPITokenParams
- func NewGetSystemAPITokenParamsWithTimeout(timeout time.Duration) *GetSystemAPITokenParams
- func (o *GetSystemAPITokenParams) SetApitoken(apitoken string)
- func (o *GetSystemAPITokenParams) SetContext(ctx context.Context)
- func (o *GetSystemAPITokenParams) SetDefaults()
- func (o *GetSystemAPITokenParams) SetHTTPClient(client *http.Client)
- func (o *GetSystemAPITokenParams) SetTimeout(timeout time.Duration)
- func (o *GetSystemAPITokenParams) WithApitoken(apitoken string) *GetSystemAPITokenParams
- func (o *GetSystemAPITokenParams) WithContext(ctx context.Context) *GetSystemAPITokenParams
- func (o *GetSystemAPITokenParams) WithDefaults() *GetSystemAPITokenParams
- func (o *GetSystemAPITokenParams) WithHTTPClient(client *http.Client) *GetSystemAPITokenParams
- func (o *GetSystemAPITokenParams) WithTimeout(timeout time.Duration) *GetSystemAPITokenParams
- func (o *GetSystemAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSystemAPITokenReader
- type GetSystemRoleOK
- func (o *GetSystemRoleOK) Code() int
- func (o *GetSystemRoleOK) Error() string
- func (o *GetSystemRoleOK) GetPayload() any
- func (o *GetSystemRoleOK) IsClientError() bool
- func (o *GetSystemRoleOK) IsCode(code int) bool
- func (o *GetSystemRoleOK) IsRedirect() bool
- func (o *GetSystemRoleOK) IsServerError() bool
- func (o *GetSystemRoleOK) IsSuccess() bool
- func (o *GetSystemRoleOK) String() string
- type GetSystemRoleParams
- func (o *GetSystemRoleParams) SetContext(ctx context.Context)
- func (o *GetSystemRoleParams) SetDefaults()
- func (o *GetSystemRoleParams) SetHTTPClient(client *http.Client)
- func (o *GetSystemRoleParams) SetRole(role string)
- func (o *GetSystemRoleParams) SetTimeout(timeout time.Duration)
- func (o *GetSystemRoleParams) WithContext(ctx context.Context) *GetSystemRoleParams
- func (o *GetSystemRoleParams) WithDefaults() *GetSystemRoleParams
- func (o *GetSystemRoleParams) WithHTTPClient(client *http.Client) *GetSystemRoleParams
- func (o *GetSystemRoleParams) WithRole(role string) *GetSystemRoleParams
- func (o *GetSystemRoleParams) WithTimeout(timeout time.Duration) *GetSystemRoleParams
- func (o *GetSystemRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSystemRoleReader
- type GrantOK
- func (o *GrantOK) Code() int
- func (o *GrantOK) Error() string
- func (o *GrantOK) GetPayload() any
- func (o *GrantOK) IsClientError() bool
- func (o *GrantOK) IsCode(code int) bool
- func (o *GrantOK) IsRedirect() bool
- func (o *GrantOK) IsServerError() bool
- func (o *GrantOK) IsSuccess() bool
- func (o *GrantOK) String() string
- type GrantParams
- func (o *GrantParams) SetBody(body *models.GrantRequest)
- func (o *GrantParams) SetContext(ctx context.Context)
- func (o *GrantParams) SetDefaults()
- func (o *GrantParams) SetHTTPClient(client *http.Client)
- func (o *GrantParams) SetProject(project string)
- func (o *GrantParams) SetTimeout(timeout time.Duration)
- func (o *GrantParams) WithBody(body *models.GrantRequest) *GrantParams
- func (o *GrantParams) WithContext(ctx context.Context) *GrantParams
- func (o *GrantParams) WithDefaults() *GrantParams
- func (o *GrantParams) WithHTTPClient(client *http.Client) *GrantParams
- func (o *GrantParams) WithProject(project string) *GrantParams
- func (o *GrantParams) WithTimeout(timeout time.Duration) *GrantParams
- func (o *GrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GrantReader
- type ListProjectAPITokensOK
- func (o *ListProjectAPITokensOK) Code() int
- func (o *ListProjectAPITokensOK) Error() string
- func (o *ListProjectAPITokensOK) GetPayload() any
- func (o *ListProjectAPITokensOK) IsClientError() bool
- func (o *ListProjectAPITokensOK) IsCode(code int) bool
- func (o *ListProjectAPITokensOK) IsRedirect() bool
- func (o *ListProjectAPITokensOK) IsServerError() bool
- func (o *ListProjectAPITokensOK) IsSuccess() bool
- func (o *ListProjectAPITokensOK) String() string
- type ListProjectAPITokensParams
- func NewListProjectAPITokensParams() *ListProjectAPITokensParams
- func NewListProjectAPITokensParamsWithContext(ctx context.Context) *ListProjectAPITokensParams
- func NewListProjectAPITokensParamsWithHTTPClient(client *http.Client) *ListProjectAPITokensParams
- func NewListProjectAPITokensParamsWithTimeout(timeout time.Duration) *ListProjectAPITokensParams
- func (o *ListProjectAPITokensParams) SetContext(ctx context.Context)
- func (o *ListProjectAPITokensParams) SetDefaults()
- func (o *ListProjectAPITokensParams) SetHTTPClient(client *http.Client)
- func (o *ListProjectAPITokensParams) SetProject(project string)
- func (o *ListProjectAPITokensParams) SetRole(role *string)
- func (o *ListProjectAPITokensParams) SetTimeout(timeout time.Duration)
- func (o *ListProjectAPITokensParams) WithContext(ctx context.Context) *ListProjectAPITokensParams
- func (o *ListProjectAPITokensParams) WithDefaults() *ListProjectAPITokensParams
- func (o *ListProjectAPITokensParams) WithHTTPClient(client *http.Client) *ListProjectAPITokensParams
- func (o *ListProjectAPITokensParams) WithProject(project string) *ListProjectAPITokensParams
- func (o *ListProjectAPITokensParams) WithRole(role *string) *ListProjectAPITokensParams
- func (o *ListProjectAPITokensParams) WithTimeout(timeout time.Duration) *ListProjectAPITokensParams
- func (o *ListProjectAPITokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListProjectAPITokensReader
- type ListProjectRolesOK
- func (o *ListProjectRolesOK) Code() int
- func (o *ListProjectRolesOK) Error() string
- func (o *ListProjectRolesOK) GetPayload() any
- func (o *ListProjectRolesOK) IsClientError() bool
- func (o *ListProjectRolesOK) IsCode(code int) bool
- func (o *ListProjectRolesOK) IsRedirect() bool
- func (o *ListProjectRolesOK) IsServerError() bool
- func (o *ListProjectRolesOK) IsSuccess() bool
- func (o *ListProjectRolesOK) String() string
- type ListProjectRolesParams
- func NewListProjectRolesParams() *ListProjectRolesParams
- func NewListProjectRolesParamsWithContext(ctx context.Context) *ListProjectRolesParams
- func NewListProjectRolesParamsWithHTTPClient(client *http.Client) *ListProjectRolesParams
- func NewListProjectRolesParamsWithTimeout(timeout time.Duration) *ListProjectRolesParams
- func (o *ListProjectRolesParams) SetContext(ctx context.Context)
- func (o *ListProjectRolesParams) SetDefaults()
- func (o *ListProjectRolesParams) SetHTTPClient(client *http.Client)
- func (o *ListProjectRolesParams) SetProject(project string)
- func (o *ListProjectRolesParams) SetTimeout(timeout time.Duration)
- func (o *ListProjectRolesParams) WithContext(ctx context.Context) *ListProjectRolesParams
- func (o *ListProjectRolesParams) WithDefaults() *ListProjectRolesParams
- func (o *ListProjectRolesParams) WithHTTPClient(client *http.Client) *ListProjectRolesParams
- func (o *ListProjectRolesParams) WithProject(project string) *ListProjectRolesParams
- func (o *ListProjectRolesParams) WithTimeout(timeout time.Duration) *ListProjectRolesParams
- func (o *ListProjectRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListProjectRolesReader
- type ListSystemAPITokensOK
- func (o *ListSystemAPITokensOK) Code() int
- func (o *ListSystemAPITokensOK) Error() string
- func (o *ListSystemAPITokensOK) GetPayload() any
- func (o *ListSystemAPITokensOK) IsClientError() bool
- func (o *ListSystemAPITokensOK) IsCode(code int) bool
- func (o *ListSystemAPITokensOK) IsRedirect() bool
- func (o *ListSystemAPITokensOK) IsServerError() bool
- func (o *ListSystemAPITokensOK) IsSuccess() bool
- func (o *ListSystemAPITokensOK) String() string
- type ListSystemAPITokensParams
- func NewListSystemAPITokensParams() *ListSystemAPITokensParams
- func NewListSystemAPITokensParamsWithContext(ctx context.Context) *ListSystemAPITokensParams
- func NewListSystemAPITokensParamsWithHTTPClient(client *http.Client) *ListSystemAPITokensParams
- func NewListSystemAPITokensParamsWithTimeout(timeout time.Duration) *ListSystemAPITokensParams
- func (o *ListSystemAPITokensParams) SetContext(ctx context.Context)
- func (o *ListSystemAPITokensParams) SetDefaults()
- func (o *ListSystemAPITokensParams) SetHTTPClient(client *http.Client)
- func (o *ListSystemAPITokensParams) SetRole(role *string)
- func (o *ListSystemAPITokensParams) SetTimeout(timeout time.Duration)
- func (o *ListSystemAPITokensParams) WithContext(ctx context.Context) *ListSystemAPITokensParams
- func (o *ListSystemAPITokensParams) WithDefaults() *ListSystemAPITokensParams
- func (o *ListSystemAPITokensParams) WithHTTPClient(client *http.Client) *ListSystemAPITokensParams
- func (o *ListSystemAPITokensParams) WithRole(role *string) *ListSystemAPITokensParams
- func (o *ListSystemAPITokensParams) WithTimeout(timeout time.Duration) *ListSystemAPITokensParams
- func (o *ListSystemAPITokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSystemAPITokensReader
- type ListSystemRolesOK
- func (o *ListSystemRolesOK) Code() int
- func (o *ListSystemRolesOK) Error() string
- func (o *ListSystemRolesOK) GetPayload() any
- func (o *ListSystemRolesOK) IsClientError() bool
- func (o *ListSystemRolesOK) IsCode(code int) bool
- func (o *ListSystemRolesOK) IsRedirect() bool
- func (o *ListSystemRolesOK) IsServerError() bool
- func (o *ListSystemRolesOK) IsSuccess() bool
- func (o *ListSystemRolesOK) String() string
- type ListSystemRolesParams
- func NewListSystemRolesParams() *ListSystemRolesParams
- func NewListSystemRolesParamsWithContext(ctx context.Context) *ListSystemRolesParams
- func NewListSystemRolesParamsWithHTTPClient(client *http.Client) *ListSystemRolesParams
- func NewListSystemRolesParamsWithTimeout(timeout time.Duration) *ListSystemRolesParams
- func (o *ListSystemRolesParams) SetContext(ctx context.Context)
- func (o *ListSystemRolesParams) SetDefaults()
- func (o *ListSystemRolesParams) SetHTTPClient(client *http.Client)
- func (o *ListSystemRolesParams) SetTimeout(timeout time.Duration)
- func (o *ListSystemRolesParams) WithContext(ctx context.Context) *ListSystemRolesParams
- func (o *ListSystemRolesParams) WithDefaults() *ListSystemRolesParams
- func (o *ListSystemRolesParams) WithHTTPClient(client *http.Client) *ListSystemRolesParams
- func (o *ListSystemRolesParams) WithTimeout(timeout time.Duration) *ListSystemRolesParams
- func (o *ListSystemRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSystemRolesReader
- type RevokeOK
- func (o *RevokeOK) Code() int
- func (o *RevokeOK) Error() string
- func (o *RevokeOK) GetPayload() any
- func (o *RevokeOK) IsClientError() bool
- func (o *RevokeOK) IsCode(code int) bool
- func (o *RevokeOK) IsRedirect() bool
- func (o *RevokeOK) IsServerError() bool
- func (o *RevokeOK) IsSuccess() bool
- func (o *RevokeOK) String() string
- type RevokeParams
- func (o *RevokeParams) SetBody(body *models.RevokeRequest)
- func (o *RevokeParams) SetContext(ctx context.Context)
- func (o *RevokeParams) SetDefaults()
- func (o *RevokeParams) SetHTTPClient(client *http.Client)
- func (o *RevokeParams) SetProject(project string)
- func (o *RevokeParams) SetTimeout(timeout time.Duration)
- func (o *RevokeParams) WithBody(body *models.RevokeRequest) *RevokeParams
- func (o *RevokeParams) WithContext(ctx context.Context) *RevokeParams
- func (o *RevokeParams) WithDefaults() *RevokeParams
- func (o *RevokeParams) WithHTTPClient(client *http.Client) *RevokeParams
- func (o *RevokeParams) WithProject(project string) *RevokeParams
- func (o *RevokeParams) WithTimeout(timeout time.Duration) *RevokeParams
- func (o *RevokeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevokeReader
- type UpdateRoleOK
- func (o *UpdateRoleOK) Code() int
- func (o *UpdateRoleOK) Error() string
- func (o *UpdateRoleOK) GetPayload() any
- func (o *UpdateRoleOK) IsClientError() bool
- func (o *UpdateRoleOK) IsCode(code int) bool
- func (o *UpdateRoleOK) IsRedirect() bool
- func (o *UpdateRoleOK) IsServerError() bool
- func (o *UpdateRoleOK) IsSuccess() bool
- func (o *UpdateRoleOK) String() string
- type UpdateRoleParams
- func (o *UpdateRoleParams) SetBody(body any)
- func (o *UpdateRoleParams) SetContext(ctx context.Context)
- func (o *UpdateRoleParams) SetDefaults()
- func (o *UpdateRoleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateRoleParams) SetProject(project string)
- func (o *UpdateRoleParams) SetRole(role string)
- func (o *UpdateRoleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateRoleParams) WithBody(body any) *UpdateRoleParams
- func (o *UpdateRoleParams) WithContext(ctx context.Context) *UpdateRoleParams
- func (o *UpdateRoleParams) WithDefaults() *UpdateRoleParams
- func (o *UpdateRoleParams) WithHTTPClient(client *http.Client) *UpdateRoleParams
- func (o *UpdateRoleParams) WithProject(project string) *UpdateRoleParams
- func (o *UpdateRoleParams) WithRole(role string) *UpdateRoleParams
- func (o *UpdateRoleParams) WithTimeout(timeout time.Duration) *UpdateRoleParams
- func (o *UpdateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRoleReader
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 ¶
func (o *CreateProjectAPITokenCreated) Code() int
Code gets the status code for the create project Api token created response
func (*CreateProjectAPITokenCreated) Error ¶
func (o *CreateProjectAPITokenCreated) Error() string
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 ¶
func (o *CreateProjectAPITokenCreated) String() 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 ¶
func (o *CreateProjectAPITokenParams) SetBody(body *models.CreateAPITokenRequest)
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 ¶
func (o *CreateProjectAPITokenParams) WithBody(body *models.CreateAPITokenRequest) *CreateProjectAPITokenParams
WithBody adds the body to the create project API token params
func (*CreateProjectAPITokenParams) WithContext ¶
func (o *CreateProjectAPITokenParams) WithContext(ctx context.Context) *CreateProjectAPITokenParams
WithContext adds the context to the create project API token params
func (*CreateProjectAPITokenParams) WithDefaults ¶
func (o *CreateProjectAPITokenParams) WithDefaults() *CreateProjectAPITokenParams
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 ¶
func (o *CreateProjectAPITokenParams) WithHTTPClient(client *http.Client) *CreateProjectAPITokenParams
WithHTTPClient adds the HTTPClient to the create project API token params
func (*CreateProjectAPITokenParams) WithProject ¶
func (o *CreateProjectAPITokenParams) WithProject(project string) *CreateProjectAPITokenParams
WithProject adds the project to the create project API token params
func (*CreateProjectAPITokenParams) WithRole ¶
func (o *CreateProjectAPITokenParams) WithRole(role string) *CreateProjectAPITokenParams
WithRole adds the role to the create project API token params
func (*CreateProjectAPITokenParams) WithTimeout ¶
func (o *CreateProjectAPITokenParams) WithTimeout(timeout time.Duration) *CreateProjectAPITokenParams
WithTimeout adds the timeout to the create project API token params
func (*CreateProjectAPITokenParams) WriteToRequest ¶
func (o *CreateProjectAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CreateProjectRoleParams) WithBody(body any) *CreateProjectRoleParams
WithBody adds the body to the create project role params
func (*CreateProjectRoleParams) WithContext ¶
func (o *CreateProjectRoleParams) WithContext(ctx context.Context) *CreateProjectRoleParams
WithContext adds the context to the create project role params
func (*CreateProjectRoleParams) WithDefaults ¶
func (o *CreateProjectRoleParams) WithDefaults() *CreateProjectRoleParams
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 ¶
func (o *CreateProjectRoleParams) WithTimeout(timeout time.Duration) *CreateProjectRoleParams
WithTimeout adds the timeout to the create project role params
func (*CreateProjectRoleParams) WriteToRequest ¶
func (o *CreateProjectRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *CreateSystemAPITokenCreated) Error() string
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 ¶
func (o *CreateSystemAPITokenParams) SetBody(body *models.CreateAPITokenRequest)
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 ¶
func (o *CreateSystemAPITokenParams) WithBody(body *models.CreateAPITokenRequest) *CreateSystemAPITokenParams
WithBody adds the body to the create system API token params
func (*CreateSystemAPITokenParams) WithContext ¶
func (o *CreateSystemAPITokenParams) WithContext(ctx context.Context) *CreateSystemAPITokenParams
WithContext adds the context to the create system API token params
func (*CreateSystemAPITokenParams) WithDefaults ¶
func (o *CreateSystemAPITokenParams) WithDefaults() *CreateSystemAPITokenParams
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 ¶
func (o *CreateSystemAPITokenParams) WithHTTPClient(client *http.Client) *CreateSystemAPITokenParams
WithHTTPClient adds the HTTPClient to the create system API token params
func (*CreateSystemAPITokenParams) WithRole ¶
func (o *CreateSystemAPITokenParams) WithRole(role string) *CreateSystemAPITokenParams
WithRole adds the role to the create system API token params
func (*CreateSystemAPITokenParams) WithTimeout ¶
func (o *CreateSystemAPITokenParams) WithTimeout(timeout time.Duration) *CreateSystemAPITokenParams
WithTimeout adds the timeout to the create system API token params
func (*CreateSystemAPITokenParams) WriteToRequest ¶
func (o *CreateSystemAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteProjectAPITokenNoContent) Code() int
Code gets the status code for the delete project Api token no content response
func (*DeleteProjectAPITokenNoContent) Error ¶
func (o *DeleteProjectAPITokenNoContent) Error() string
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 ¶
func (o *DeleteProjectAPITokenNoContent) String() 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 ¶
func (o *DeleteProjectAPITokenParams) WithApitoken(apitoken string) *DeleteProjectAPITokenParams
WithApitoken adds the apitoken to the delete project API token params
func (*DeleteProjectAPITokenParams) WithContext ¶
func (o *DeleteProjectAPITokenParams) WithContext(ctx context.Context) *DeleteProjectAPITokenParams
WithContext adds the context to the delete project API token params
func (*DeleteProjectAPITokenParams) WithDefaults ¶
func (o *DeleteProjectAPITokenParams) WithDefaults() *DeleteProjectAPITokenParams
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 ¶
func (o *DeleteProjectAPITokenParams) WithHTTPClient(client *http.Client) *DeleteProjectAPITokenParams
WithHTTPClient adds the HTTPClient to the delete project API token params
func (*DeleteProjectAPITokenParams) WithProject ¶
func (o *DeleteProjectAPITokenParams) WithProject(project string) *DeleteProjectAPITokenParams
WithProject adds the project to the delete project API token params
func (*DeleteProjectAPITokenParams) WithTimeout ¶
func (o *DeleteProjectAPITokenParams) WithTimeout(timeout time.Duration) *DeleteProjectAPITokenParams
WithTimeout adds the timeout to the delete project API token params
func (*DeleteProjectAPITokenParams) WriteToRequest ¶
func (o *DeleteProjectAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *DeleteProjectRoleNoContent) Error() string
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 ¶
func (o *DeleteProjectRoleParams) WithContext(ctx context.Context) *DeleteProjectRoleParams
WithContext adds the context to the delete project role params
func (*DeleteProjectRoleParams) WithDefaults ¶
func (o *DeleteProjectRoleParams) WithDefaults() *DeleteProjectRoleParams
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 ¶
func (o *DeleteProjectRoleParams) WithRole(role string) *DeleteProjectRoleParams
WithRole adds the role to the delete project role params
func (*DeleteProjectRoleParams) WithTimeout ¶
func (o *DeleteProjectRoleParams) WithTimeout(timeout time.Duration) *DeleteProjectRoleParams
WithTimeout adds the timeout to the delete project role params
func (*DeleteProjectRoleParams) WriteToRequest ¶
func (o *DeleteProjectRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteSystemAPITokenNoContent) Code() int
Code gets the status code for the delete system Api token no content response
func (*DeleteSystemAPITokenNoContent) Error ¶
func (o *DeleteSystemAPITokenNoContent) Error() string
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 ¶
func (o *DeleteSystemAPITokenNoContent) String() 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 ¶
func (o *DeleteSystemAPITokenParams) WithApitoken(apitoken string) *DeleteSystemAPITokenParams
WithApitoken adds the apitoken to the delete system API token params
func (*DeleteSystemAPITokenParams) WithContext ¶
func (o *DeleteSystemAPITokenParams) WithContext(ctx context.Context) *DeleteSystemAPITokenParams
WithContext adds the context to the delete system API token params
func (*DeleteSystemAPITokenParams) WithDefaults ¶
func (o *DeleteSystemAPITokenParams) WithDefaults() *DeleteSystemAPITokenParams
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 ¶
func (o *DeleteSystemAPITokenParams) WithHTTPClient(client *http.Client) *DeleteSystemAPITokenParams
WithHTTPClient adds the HTTPClient to the delete system API token params
func (*DeleteSystemAPITokenParams) WithTimeout ¶
func (o *DeleteSystemAPITokenParams) WithTimeout(timeout time.Duration) *DeleteSystemAPITokenParams
WithTimeout adds the timeout to the delete system API token params
func (*DeleteSystemAPITokenParams) WriteToRequest ¶
func (o *DeleteSystemAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetProjectAPITokenParams) WithContext(ctx context.Context) *GetProjectAPITokenParams
WithContext adds the context to the get project API token params
func (*GetProjectAPITokenParams) WithDefaults ¶
func (o *GetProjectAPITokenParams) WithDefaults() *GetProjectAPITokenParams
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 ¶
func (o *GetProjectAPITokenParams) WithTimeout(timeout time.Duration) *GetProjectAPITokenParams
WithTimeout adds the timeout to the get project API token params
func (*GetProjectAPITokenParams) WriteToRequest ¶
func (o *GetProjectAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetProjectRoleParams) WithContext(ctx context.Context) *GetProjectRoleParams
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 ¶
func (o *GetProjectRoleParams) WithRole(role string) *GetProjectRoleParams
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 ¶
func (o *GetSystemAPITokenParams) WithContext(ctx context.Context) *GetSystemAPITokenParams
WithContext adds the context to the get system API token params
func (*GetSystemAPITokenParams) WithDefaults ¶
func (o *GetSystemAPITokenParams) WithDefaults() *GetSystemAPITokenParams
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 ¶
func (o *GetSystemAPITokenParams) WithTimeout(timeout time.Duration) *GetSystemAPITokenParams
WithTimeout adds the timeout to the get system API token params
func (*GetSystemAPITokenParams) WriteToRequest ¶
func (o *GetSystemAPITokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetSystemRoleParams) WithContext(ctx context.Context) *GetSystemRoleParams
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) GetPayload ¶
func (*GrantOK) IsClientError ¶
IsClientError returns true when this grant o k response has a 4xx status code
func (*GrantOK) IsCode ¶
IsCode returns true when this grant o k response a status code equal to that given
func (*GrantOK) IsRedirect ¶
IsRedirect returns true when this grant o k response has a 3xx status code
func (*GrantOK) IsServerError ¶
IsServerError returns true when this grant o k response has a 5xx status code
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 ¶
func (o *ListProjectAPITokensParams) WithContext(ctx context.Context) *ListProjectAPITokensParams
WithContext adds the context to the list project API tokens params
func (*ListProjectAPITokensParams) WithDefaults ¶
func (o *ListProjectAPITokensParams) WithDefaults() *ListProjectAPITokensParams
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 ¶
func (o *ListProjectAPITokensParams) WithHTTPClient(client *http.Client) *ListProjectAPITokensParams
WithHTTPClient adds the HTTPClient to the list project API tokens params
func (*ListProjectAPITokensParams) WithProject ¶
func (o *ListProjectAPITokensParams) WithProject(project string) *ListProjectAPITokensParams
WithProject adds the project to the list project API tokens params
func (*ListProjectAPITokensParams) WithRole ¶
func (o *ListProjectAPITokensParams) WithRole(role *string) *ListProjectAPITokensParams
WithRole adds the role to the list project API tokens params
func (*ListProjectAPITokensParams) WithTimeout ¶
func (o *ListProjectAPITokensParams) WithTimeout(timeout time.Duration) *ListProjectAPITokensParams
WithTimeout adds the timeout to the list project API tokens params
func (*ListProjectAPITokensParams) WriteToRequest ¶
func (o *ListProjectAPITokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListProjectRolesParams) WithContext(ctx context.Context) *ListProjectRolesParams
WithContext adds the context to the list project roles params
func (*ListProjectRolesParams) WithDefaults ¶
func (o *ListProjectRolesParams) WithDefaults() *ListProjectRolesParams
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 ¶
func (o *ListProjectRolesParams) WithTimeout(timeout time.Duration) *ListProjectRolesParams
WithTimeout adds the timeout to the list project roles params
func (*ListProjectRolesParams) WriteToRequest ¶
func (o *ListProjectRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListSystemAPITokensParams) WithContext(ctx context.Context) *ListSystemAPITokensParams
WithContext adds the context to the list system API tokens params
func (*ListSystemAPITokensParams) WithDefaults ¶
func (o *ListSystemAPITokensParams) WithDefaults() *ListSystemAPITokensParams
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 ¶
func (o *ListSystemAPITokensParams) WithRole(role *string) *ListSystemAPITokensParams
WithRole adds the role to the list system API tokens params
func (*ListSystemAPITokensParams) WithTimeout ¶
func (o *ListSystemAPITokensParams) WithTimeout(timeout time.Duration) *ListSystemAPITokensParams
WithTimeout adds the timeout to the list system API tokens params
func (*ListSystemAPITokensParams) WriteToRequest ¶
func (o *ListSystemAPITokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListSystemRolesParams) WithContext(ctx context.Context) *ListSystemRolesParams
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) GetPayload ¶
func (*RevokeOK) IsClientError ¶
IsClientError returns true when this revoke o k response has a 4xx status code
func (*RevokeOK) IsCode ¶
IsCode returns true when this revoke o k response a status code equal to that given
func (*RevokeOK) IsRedirect ¶
IsRedirect returns true when this revoke o k response has a 3xx status code
func (*RevokeOK) IsServerError ¶
IsServerError returns true when this revoke o k response has a 5xx status code
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.
Source Files
¶
- create_project_api_token_parameters.go
- create_project_api_token_responses.go
- create_project_role_parameters.go
- create_project_role_responses.go
- create_system_api_token_parameters.go
- create_system_api_token_responses.go
- delete_project_api_token_parameters.go
- delete_project_api_token_responses.go
- delete_project_role_parameters.go
- delete_project_role_responses.go
- delete_system_api_token_parameters.go
- delete_system_api_token_responses.go
- get_project_api_token_parameters.go
- get_project_api_token_responses.go
- get_project_role_parameters.go
- get_project_role_responses.go
- get_system_api_token_parameters.go
- get_system_api_token_responses.go
- get_system_role_parameters.go
- get_system_role_responses.go
- grant_parameters.go
- grant_responses.go
- list_project_api_tokens_parameters.go
- list_project_api_tokens_responses.go
- list_project_roles_parameters.go
- list_project_roles_responses.go
- list_system_api_tokens_parameters.go
- list_system_api_tokens_responses.go
- list_system_roles_parameters.go
- list_system_roles_responses.go
- rbac_client.go
- revoke_parameters.go
- revoke_responses.go
- update_role_parameters.go
- update_role_responses.go