Documentation ¶
Index ¶
- func NewSecretManagerSecretsListRequest(server string, params *SecretManagerSecretsListParams) (*http.Request, error)
- func NewSecretManagerSecretsRetrieveRequest(server string, id uuid.UUID, params *SecretManagerSecretsRetrieveParams) (*http.Request, error)
- type Client
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) SecretManagerSecretsListWithResponse(ctx context.Context, params *SecretManagerSecretsListParams, ...) (*SecretManagerSecretsListResponse, error)
- func (c *ClientWithResponses) SecretManagerSecretsRetrieveWithResponse(ctx context.Context, name string, params *SecretManagerSecretsRetrieveParams, ...) (*SecretManagerSecretsRetrieveResponse, error)
- type ErrorResponse
- type HTTPRequestDoer
- type PaginatedSecretListList
- type RequestEditorFn
- type SecretList
- type SecretManagerSecretsListParams
- type SecretManagerSecretsListResponse
- type SecretManagerSecretsRetrieveParams
- type SecretManagerSecretsRetrieveResponse
- type SecretRetrieve
- type SecurityProviderPATToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecretManagerSecretsListRequest ¶
func NewSecretManagerSecretsListRequest(server string, params *SecretManagerSecretsListParams) (*http.Request, error)
NewSecretManagerSecretsListRequest generates requests for SecretManagerSecretsList
func NewSecretManagerSecretsRetrieveRequest ¶
func NewSecretManagerSecretsRetrieveRequest(server string, id uuid.UUID, params *SecretManagerSecretsRetrieveParams) (*http.Request, error)
NewSecretManagerSecretsRetrieveRequest generates requests for SecretManagerSecretsRetrieve
Types ¶
type Client ¶
type Client struct { // The base URL for the service Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HTTPRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
NewClient creates a new Client, with reasonable defaults
func (*Client) SecretManagerSecretsList ¶
func (c *Client) SecretManagerSecretsList(ctx context.Context, params *SecretManagerSecretsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SecretManagerSecretsRetrieve ¶
func (c *Client) SecretManagerSecretsRetrieve(ctx context.Context, id uuid.UUID, params *SecretManagerSecretsRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // SecretManagerSecretsList request SecretManagerSecretsList(ctx context.Context, params *SecretManagerSecretsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) // SecretManagerSecretsRetrieve request SecretManagerSecretsRetrieve(ctx context.Context, id uuid.UUID, params *SecretManagerSecretsRetrieveParams, reqEditors ...RequestEditorFn) (*http.Response, error) }
ClientInterface is the interface for the vclient
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) SecretManagerSecretsListWithResponse ¶
func (c *ClientWithResponses) SecretManagerSecretsListWithResponse(ctx context.Context, params *SecretManagerSecretsListParams, reqEditors ...RequestEditorFn) (*SecretManagerSecretsListResponse, error)
SecretManagerSecretsListWithResponse request returning *SecretManagerSecretsListResponse
func (*ClientWithResponses) SecretManagerSecretsRetrieveWithResponse ¶
func (c *ClientWithResponses) SecretManagerSecretsRetrieveWithResponse(ctx context.Context, name string, params *SecretManagerSecretsRetrieveParams, reqEditors ...RequestEditorFn) (*SecretManagerSecretsRetrieveResponse, error)
type ErrorResponse ¶
type ErrorResponse struct {
Union json.RawMessage
}
ErrorResponse defines model for ErrorResponse.
type HTTPRequestDoer ¶
HTTPRequestDoer performs HTTP requests.
The standard http.Client implements this interface.
type PaginatedSecretListList ¶
type PaginatedSecretListList struct { Count *int `json:"count,omitempty"` Next *string `json:"next,omitempty"` Previous *string `json:"previous,omitempty"` Results *[]SecretList `json:"results,omitempty"` }
PaginatedSecretListList defines model for PaginatedSecretListList.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SecretList ¶
type SecretList struct { CreatedAt *time.Time `json:"created_at,omitempty"` ID *uuid.UUID `json:"id,omitempty"` Name string `json:"name,omitempty"` }
SecretList defines model for SecretList.
type SecretManagerSecretsListParams ¶
type SecretManagerSecretsListParams struct { Name *string `form:"name,omitempty" json:"name,omitempty"` // Page A page number within the paginated result set. Page *int `form:"page,omitempty" json:"page,omitempty"` // PageSize Number of results to return per page. PageSize *int `form:"page_size,omitempty" json:"page_size,omitempty"` // ProjectID The project id. ProjectID uuid.UUID `json:"project-id,omitempty"` }
SecretManagerSecretsListParams defines parameters for SecretManagerSecretsList.
type SecretManagerSecretsListResponse ¶
type SecretManagerSecretsListResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedSecretListList JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse }
func ParseSecretManagerSecretsListResponse ¶
func ParseSecretManagerSecretsListResponse(rsp *http.Response) (*SecretManagerSecretsListResponse, error)
ParseSecretManagerSecretsListResponse parses an HTTP response from a SecretManagerSecretsListWithResponse call
func (SecretManagerSecretsListResponse) Status ¶
func (r SecretManagerSecretsListResponse) Status() string
Status returns HTTPResponse.Status
func (SecretManagerSecretsListResponse) StatusCode ¶
func (r SecretManagerSecretsListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SecretManagerSecretsRetrieveParams ¶
type SecretManagerSecretsRetrieveParams struct { // ProjectID The project id. ProjectID uuid.UUID `json:"project-id,omitempty"` }
SecretManagerSecretsRetrieveParams defines parameters for SecretManagerSecretsRetrieve.
type SecretManagerSecretsRetrieveResponse ¶
type SecretManagerSecretsRetrieveResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SecretRetrieve JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse }
func ParseSecretManagerSecretsRetrieveResponse ¶
func ParseSecretManagerSecretsRetrieveResponse(rsp *http.Response) (*SecretManagerSecretsRetrieveResponse, error)
ParseSecretManagerSecretsRetrieveResponse parses an HTTP response from a SecretManagerSecretsRetrieveWithResponse call
func (SecretManagerSecretsRetrieveResponse) Status ¶
func (r SecretManagerSecretsRetrieveResponse) Status() string
Status returns HTTPResponse.Status
func (SecretManagerSecretsRetrieveResponse) StatusCode ¶
func (r SecretManagerSecretsRetrieveResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SecretRetrieve ¶
type SecretRetrieve struct { CreatedAt *time.Time `json:"created_at,omitempty"` ID *uuid.UUID `json:"id,omitempty"` Metadata *map[string]interface{} `json:"metadata,omitempty"` Name string `json:"name,omitempty"` Secret *map[string]interface{} `json:"secret,omitempty"` }
SecretRetrieve defines model for SecretRetrieve.
type SecurityProviderPATToken ¶
type SecurityProviderPATToken struct {
// contains filtered or unexported fields
}
func NewSecurityProviderPATToken ¶
func NewSecurityProviderPATToken(token string) (*SecurityProviderPATToken, error)