client

package
v0.0.0-...-5d9220f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCreateSecretPayload

func BuildCreateSecretPayload(secretsCreateSecretBody string) (*secrets.CreateSecretPayload, error)

BuildCreateSecretPayload builds the payload for the secrets create secret endpoint from CLI flags.

func BuildGetSecretPayload

func BuildGetSecretPayload(secretsGetSecretPath string) (*secrets.GetSecretPayload, error)

BuildGetSecretPayload builds the payload for the secrets get secret endpoint from CLI flags.

func BuildGetSecretValuePayload

func BuildGetSecretValuePayload(secretsGetSecretValuePath string) (*secrets.GetSecretValuePayload, error)

BuildGetSecretValuePayload builds the payload for the secrets get secret value endpoint from CLI flags.

func BuildUpdateSecretPayload

func BuildUpdateSecretPayload(secretsUpdateSecretBody string) (*secrets.UpdateSecretPayload, error)

BuildUpdateSecretPayload builds the payload for the secrets update secret endpoint from CLI flags.

func CreateSecretSecretsPath

func CreateSecretSecretsPath() string

CreateSecretSecretsPath returns the URL path to the secrets service create secret HTTP endpoint.

func DecodeCreateSecretResponse

func DecodeCreateSecretResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeCreateSecretResponse returns a decoder for responses returned by the secrets create secret endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCreateSecretResponse may return the following errors:

  • "invalid_parameters" (type *goa.ServiceError): http.StatusBadRequest
  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "internal_error" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeGetSecretResponse

func DecodeGetSecretResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetSecretResponse returns a decoder for responses returned by the secrets get secret endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetSecretResponse may return the following errors:

  • "secret_not_found" (type *goa.ServiceError): http.StatusNotFound
  • "invalid_parameters" (type *goa.ServiceError): http.StatusBadRequest
  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "internal_error" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeGetSecretValueResponse

func DecodeGetSecretValueResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetSecretValueResponse returns a decoder for responses returned by the secrets get secret value endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetSecretValueResponse may return the following errors:

  • "secret_not_found" (type *goa.ServiceError): http.StatusNotFound
  • "invalid_parameters" (type *goa.ServiceError): http.StatusBadRequest
  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "internal_error" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeListSecretsResponse

func DecodeListSecretsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeListSecretsResponse returns a decoder for responses returned by the secrets list secrets endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListSecretsResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "internal_error" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func DecodeUpdateSecretResponse

func DecodeUpdateSecretResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeUpdateSecretResponse returns a decoder for responses returned by the secrets update secret endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUpdateSecretResponse may return the following errors:

  • "secret_not_found" (type *goa.ServiceError): http.StatusNotFound
  • "invalid_parameters" (type *goa.ServiceError): http.StatusBadRequest
  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "internal_error" (type *goa.ServiceError): http.StatusInternalServerError
  • error: internal error

func EncodeCreateSecretRequest

func EncodeCreateSecretRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeCreateSecretRequest returns an encoder for requests sent to the secrets create secret server.

func EncodeUpdateSecretRequest

func EncodeUpdateSecretRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeUpdateSecretRequest returns an encoder for requests sent to the secrets update secret server.

func GetSecretSecretsPath

func GetSecretSecretsPath(path string) string

GetSecretSecretsPath returns the URL path to the secrets service get secret HTTP endpoint.

func GetSecretValueSecretsPath

func GetSecretValueSecretsPath(path string) string

GetSecretValueSecretsPath returns the URL path to the secrets service get secret value HTTP endpoint.

func ListSecretsSecretsPath

func ListSecretsSecretsPath() string

ListSecretsSecretsPath returns the URL path to the secrets service list secrets HTTP endpoint.

func NewCreateSecretForbidden

func NewCreateSecretForbidden(body *CreateSecretForbiddenResponseBody) *goa.ServiceError

NewCreateSecretForbidden builds a secrets service create secret endpoint forbidden error.

func NewCreateSecretInternalError

func NewCreateSecretInternalError(body *CreateSecretInternalErrorResponseBody) *goa.ServiceError

NewCreateSecretInternalError builds a secrets service create secret endpoint internal_error error.

func NewCreateSecretInvalidParameters

func NewCreateSecretInvalidParameters(body *CreateSecretInvalidParametersResponseBody) *goa.ServiceError

NewCreateSecretInvalidParameters builds a secrets service create secret endpoint invalid_parameters error.

func NewCreateSecretUnauthorized

func NewCreateSecretUnauthorized(body *CreateSecretUnauthorizedResponseBody) *goa.ServiceError

NewCreateSecretUnauthorized builds a secrets service create secret endpoint unauthorized error.

func NewGetSecretForbidden

func NewGetSecretForbidden(body *GetSecretForbiddenResponseBody) *goa.ServiceError

NewGetSecretForbidden builds a secrets service get secret endpoint forbidden error.

func NewGetSecretInternalError

func NewGetSecretInternalError(body *GetSecretInternalErrorResponseBody) *goa.ServiceError

NewGetSecretInternalError builds a secrets service get secret endpoint internal_error error.

func NewGetSecretInvalidParameters

func NewGetSecretInvalidParameters(body *GetSecretInvalidParametersResponseBody) *goa.ServiceError

NewGetSecretInvalidParameters builds a secrets service get secret endpoint invalid_parameters error.

func NewGetSecretSecretInfoOK

func NewGetSecretSecretInfoOK(body *GetSecretResponseBody) *secrets.SecretInfo

NewGetSecretSecretInfoOK builds a "secrets" service "get secret" endpoint result from a HTTP "OK" response.

func NewGetSecretSecretNotFound

func NewGetSecretSecretNotFound(body *GetSecretSecretNotFoundResponseBody) *goa.ServiceError

NewGetSecretSecretNotFound builds a secrets service get secret endpoint secret_not_found error.

func NewGetSecretUnauthorized

func NewGetSecretUnauthorized(body *GetSecretUnauthorizedResponseBody) *goa.ServiceError

NewGetSecretUnauthorized builds a secrets service get secret endpoint unauthorized error.

func NewGetSecretValueForbidden

func NewGetSecretValueForbidden(body *GetSecretValueForbiddenResponseBody) *goa.ServiceError

NewGetSecretValueForbidden builds a secrets service get secret value endpoint forbidden error.

func NewGetSecretValueInternalError

func NewGetSecretValueInternalError(body *GetSecretValueInternalErrorResponseBody) *goa.ServiceError

NewGetSecretValueInternalError builds a secrets service get secret value endpoint internal_error error.

func NewGetSecretValueInvalidParameters

func NewGetSecretValueInvalidParameters(body *GetSecretValueInvalidParametersResponseBody) *goa.ServiceError

NewGetSecretValueInvalidParameters builds a secrets service get secret value endpoint invalid_parameters error.

func NewGetSecretValueResultOK

func NewGetSecretValueResultOK(body *GetSecretValueResponseBody) *secrets.GetSecretValueResult

NewGetSecretValueResultOK builds a "secrets" service "get secret value" endpoint result from a HTTP "OK" response.

func NewGetSecretValueSecretNotFound

func NewGetSecretValueSecretNotFound(body *GetSecretValueSecretNotFoundResponseBody) *goa.ServiceError

NewGetSecretValueSecretNotFound builds a secrets service get secret value endpoint secret_not_found error.

func NewGetSecretValueUnauthorized

func NewGetSecretValueUnauthorized(body *GetSecretValueUnauthorizedResponseBody) *goa.ServiceError

NewGetSecretValueUnauthorized builds a secrets service get secret value endpoint unauthorized error.

func NewListSecretsForbidden

func NewListSecretsForbidden(body *ListSecretsForbiddenResponseBody) *goa.ServiceError

NewListSecretsForbidden builds a secrets service list secrets endpoint forbidden error.

func NewListSecretsInternalError

func NewListSecretsInternalError(body *ListSecretsInternalErrorResponseBody) *goa.ServiceError

NewListSecretsInternalError builds a secrets service list secrets endpoint internal_error error.

func NewListSecretsSecretInfoSummaryOK

func NewListSecretsSecretInfoSummaryOK(body []*SecretInfoSummaryResponse) []*secrets.SecretInfoSummary

NewListSecretsSecretInfoSummaryOK builds a "secrets" service "list secrets" endpoint result from a HTTP "OK" response.

func NewListSecretsUnauthorized

func NewListSecretsUnauthorized(body *ListSecretsUnauthorizedResponseBody) *goa.ServiceError

NewListSecretsUnauthorized builds a secrets service list secrets endpoint unauthorized error.

func NewUpdateSecretForbidden

func NewUpdateSecretForbidden(body *UpdateSecretForbiddenResponseBody) *goa.ServiceError

NewUpdateSecretForbidden builds a secrets service update secret endpoint forbidden error.

func NewUpdateSecretInternalError

func NewUpdateSecretInternalError(body *UpdateSecretInternalErrorResponseBody) *goa.ServiceError

NewUpdateSecretInternalError builds a secrets service update secret endpoint internal_error error.

func NewUpdateSecretInvalidParameters

func NewUpdateSecretInvalidParameters(body *UpdateSecretInvalidParametersResponseBody) *goa.ServiceError

NewUpdateSecretInvalidParameters builds a secrets service update secret endpoint invalid_parameters error.

func NewUpdateSecretSecretNotFound

func NewUpdateSecretSecretNotFound(body *UpdateSecretSecretNotFoundResponseBody) *goa.ServiceError

NewUpdateSecretSecretNotFound builds a secrets service update secret endpoint secret_not_found error.

func NewUpdateSecretUnauthorized

func NewUpdateSecretUnauthorized(body *UpdateSecretUnauthorizedResponseBody) *goa.ServiceError

NewUpdateSecretUnauthorized builds a secrets service update secret endpoint unauthorized error.

func UpdateSecretSecretsPath

func UpdateSecretSecretsPath() string

UpdateSecretSecretsPath returns the URL path to the secrets service update secret HTTP endpoint.

func ValidateCreateSecretForbiddenResponseBody

func ValidateCreateSecretForbiddenResponseBody(body *CreateSecretForbiddenResponseBody) (err error)

ValidateCreateSecretForbiddenResponseBody runs the validations defined on create secret_forbidden_response_body

func ValidateCreateSecretInternalErrorResponseBody

func ValidateCreateSecretInternalErrorResponseBody(body *CreateSecretInternalErrorResponseBody) (err error)

ValidateCreateSecretInternalErrorResponseBody runs the validations defined on create secret_internal_error_response_body

func ValidateCreateSecretInvalidParametersResponseBody

func ValidateCreateSecretInvalidParametersResponseBody(body *CreateSecretInvalidParametersResponseBody) (err error)

ValidateCreateSecretInvalidParametersResponseBody runs the validations defined on create secret_invalid_parameters_response_body

func ValidateCreateSecretUnauthorizedResponseBody

func ValidateCreateSecretUnauthorizedResponseBody(body *CreateSecretUnauthorizedResponseBody) (err error)

ValidateCreateSecretUnauthorizedResponseBody runs the validations defined on create secret_unauthorized_response_body

func ValidateGetSecretForbiddenResponseBody

func ValidateGetSecretForbiddenResponseBody(body *GetSecretForbiddenResponseBody) (err error)

ValidateGetSecretForbiddenResponseBody runs the validations defined on get secret_forbidden_response_body

func ValidateGetSecretInternalErrorResponseBody

func ValidateGetSecretInternalErrorResponseBody(body *GetSecretInternalErrorResponseBody) (err error)

ValidateGetSecretInternalErrorResponseBody runs the validations defined on get secret_internal_error_response_body

func ValidateGetSecretInvalidParametersResponseBody

func ValidateGetSecretInvalidParametersResponseBody(body *GetSecretInvalidParametersResponseBody) (err error)

ValidateGetSecretInvalidParametersResponseBody runs the validations defined on get secret_invalid_parameters_response_body

func ValidateGetSecretResponseBody

func ValidateGetSecretResponseBody(body *GetSecretResponseBody) (err error)

ValidateGetSecretResponseBody runs the validations defined on Get SecretResponseBody

func ValidateGetSecretSecretNotFoundResponseBody

func ValidateGetSecretSecretNotFoundResponseBody(body *GetSecretSecretNotFoundResponseBody) (err error)

ValidateGetSecretSecretNotFoundResponseBody runs the validations defined on get secret_secret_not_found_response_body

func ValidateGetSecretUnauthorizedResponseBody

func ValidateGetSecretUnauthorizedResponseBody(body *GetSecretUnauthorizedResponseBody) (err error)

ValidateGetSecretUnauthorizedResponseBody runs the validations defined on get secret_unauthorized_response_body

func ValidateGetSecretValueForbiddenResponseBody

func ValidateGetSecretValueForbiddenResponseBody(body *GetSecretValueForbiddenResponseBody) (err error)

ValidateGetSecretValueForbiddenResponseBody runs the validations defined on get secret value_forbidden_response_body

func ValidateGetSecretValueInternalErrorResponseBody

func ValidateGetSecretValueInternalErrorResponseBody(body *GetSecretValueInternalErrorResponseBody) (err error)

ValidateGetSecretValueInternalErrorResponseBody runs the validations defined on get secret value_internal_error_response_body

func ValidateGetSecretValueInvalidParametersResponseBody

func ValidateGetSecretValueInvalidParametersResponseBody(body *GetSecretValueInvalidParametersResponseBody) (err error)

ValidateGetSecretValueInvalidParametersResponseBody runs the validations defined on get secret value_invalid_parameters_response_body

func ValidateGetSecretValueSecretNotFoundResponseBody

func ValidateGetSecretValueSecretNotFoundResponseBody(body *GetSecretValueSecretNotFoundResponseBody) (err error)

ValidateGetSecretValueSecretNotFoundResponseBody runs the validations defined on get secret value_secret_not_found_response_body

func ValidateGetSecretValueUnauthorizedResponseBody

func ValidateGetSecretValueUnauthorizedResponseBody(body *GetSecretValueUnauthorizedResponseBody) (err error)

ValidateGetSecretValueUnauthorizedResponseBody runs the validations defined on get secret value_unauthorized_response_body

func ValidateListSecretsForbiddenResponseBody

func ValidateListSecretsForbiddenResponseBody(body *ListSecretsForbiddenResponseBody) (err error)

ValidateListSecretsForbiddenResponseBody runs the validations defined on list secrets_forbidden_response_body

func ValidateListSecretsInternalErrorResponseBody

func ValidateListSecretsInternalErrorResponseBody(body *ListSecretsInternalErrorResponseBody) (err error)

ValidateListSecretsInternalErrorResponseBody runs the validations defined on list secrets_internal_error_response_body

func ValidateListSecretsUnauthorizedResponseBody

func ValidateListSecretsUnauthorizedResponseBody(body *ListSecretsUnauthorizedResponseBody) (err error)

ValidateListSecretsUnauthorizedResponseBody runs the validations defined on list secrets_unauthorized_response_body

func ValidateRoleResponse

func ValidateRoleResponse(body *RoleResponse) (err error)

ValidateRoleResponse runs the validations defined on RoleResponse

func ValidateRoleResponseBody

func ValidateRoleResponseBody(body *RoleResponseBody) (err error)

ValidateRoleResponseBody runs the validations defined on RoleResponseBody

func ValidateSecretInfoSummaryResponse

func ValidateSecretInfoSummaryResponse(body *SecretInfoSummaryResponse) (err error)

ValidateSecretInfoSummaryResponse runs the validations defined on SecretInfoSummaryResponse

func ValidateUpdateSecretForbiddenResponseBody

func ValidateUpdateSecretForbiddenResponseBody(body *UpdateSecretForbiddenResponseBody) (err error)

ValidateUpdateSecretForbiddenResponseBody runs the validations defined on update secret_forbidden_response_body

func ValidateUpdateSecretInternalErrorResponseBody

func ValidateUpdateSecretInternalErrorResponseBody(body *UpdateSecretInternalErrorResponseBody) (err error)

ValidateUpdateSecretInternalErrorResponseBody runs the validations defined on update secret_internal_error_response_body

func ValidateUpdateSecretInvalidParametersResponseBody

func ValidateUpdateSecretInvalidParametersResponseBody(body *UpdateSecretInvalidParametersResponseBody) (err error)

ValidateUpdateSecretInvalidParametersResponseBody runs the validations defined on update secret_invalid_parameters_response_body

func ValidateUpdateSecretSecretNotFoundResponseBody

func ValidateUpdateSecretSecretNotFoundResponseBody(body *UpdateSecretSecretNotFoundResponseBody) (err error)

ValidateUpdateSecretSecretNotFoundResponseBody runs the validations defined on update secret_secret_not_found_response_body

func ValidateUpdateSecretUnauthorizedResponseBody

func ValidateUpdateSecretUnauthorizedResponseBody(body *UpdateSecretUnauthorizedResponseBody) (err error)

ValidateUpdateSecretUnauthorizedResponseBody runs the validations defined on update secret_unauthorized_response_body

func ValidateUserResponse

func ValidateUserResponse(body *UserResponse) (err error)

ValidateUserResponse runs the validations defined on UserResponse

func ValidateUserResponseBody

func ValidateUserResponseBody(body *UserResponseBody) (err error)

ValidateUserResponseBody runs the validations defined on UserResponseBody

Types

type Client

type Client struct {
	// ListSecrets Doer is the HTTP client used to make requests to the list
	// secrets endpoint.
	ListSecretsDoer goahttp.Doer

	// GetSecretValue Doer is the HTTP client used to make requests to the get
	// secret value endpoint.
	GetSecretValueDoer goahttp.Doer

	// GetSecret Doer is the HTTP client used to make requests to the get secret
	// endpoint.
	GetSecretDoer goahttp.Doer

	// CreateSecret Doer is the HTTP client used to make requests to the create
	// secret endpoint.
	CreateSecretDoer goahttp.Doer

	// UpdateSecret Doer is the HTTP client used to make requests to the update
	// secret endpoint.
	UpdateSecretDoer goahttp.Doer

	// CORS Doer is the HTTP client used to make requests to the  endpoint.
	CORSDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the secrets service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the secrets service servers.

func (*Client) BuildCreateSecretRequest

func (c *Client) BuildCreateSecretRequest(ctx context.Context, v any) (*http.Request, error)

BuildCreateSecretRequest instantiates a HTTP request object with method and path set to call the "secrets" service "create secret" endpoint

func (*Client) BuildGetSecretRequest

func (c *Client) BuildGetSecretRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetSecretRequest instantiates a HTTP request object with method and path set to call the "secrets" service "get secret" endpoint

func (*Client) BuildGetSecretValueRequest

func (c *Client) BuildGetSecretValueRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetSecretValueRequest instantiates a HTTP request object with method and path set to call the "secrets" service "get secret value" endpoint

func (*Client) BuildListSecretsRequest

func (c *Client) BuildListSecretsRequest(ctx context.Context, v any) (*http.Request, error)

BuildListSecretsRequest instantiates a HTTP request object with method and path set to call the "secrets" service "list secrets" endpoint

func (*Client) BuildUpdateSecretRequest

func (c *Client) BuildUpdateSecretRequest(ctx context.Context, v any) (*http.Request, error)

BuildUpdateSecretRequest instantiates a HTTP request object with method and path set to call the "secrets" service "update secret" endpoint

func (*Client) CreateSecret

func (c *Client) CreateSecret() goa.Endpoint

CreateSecret returns an endpoint that makes HTTP requests to the secrets service create secret server.

func (*Client) GetSecret

func (c *Client) GetSecret() goa.Endpoint

GetSecret returns an endpoint that makes HTTP requests to the secrets service get secret server.

func (*Client) GetSecretValue

func (c *Client) GetSecretValue() goa.Endpoint

GetSecretValue returns an endpoint that makes HTTP requests to the secrets service get secret value server.

func (*Client) ListSecrets

func (c *Client) ListSecrets() goa.Endpoint

ListSecrets returns an endpoint that makes HTTP requests to the secrets service list secrets server.

func (*Client) UpdateSecret

func (c *Client) UpdateSecret() goa.Endpoint

UpdateSecret returns an endpoint that makes HTTP requests to the secrets service update secret server.

type CreateSecretForbiddenResponseBody

type CreateSecretForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CreateSecretForbiddenResponseBody is the type of the "secrets" service "create secret" endpoint HTTP response body for the "forbidden" error.

type CreateSecretInternalErrorResponseBody

type CreateSecretInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CreateSecretInternalErrorResponseBody is the type of the "secrets" service "create secret" endpoint HTTP response body for the "internal_error" error.

type CreateSecretInvalidParametersResponseBody

type CreateSecretInvalidParametersResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CreateSecretInvalidParametersResponseBody is the type of the "secrets" service "create secret" endpoint HTTP response body for the "invalid_parameters" error.

type CreateSecretRequestBody

type CreateSecretRequestBody struct {
	// Base64 encoded secret's path
	Path string `form:"path" json:"path" xml:"path"`
	// The secret value
	Value string `form:"value" json:"value" xml:"value"`
	// Users IDs authorized to access the secret
	AuthorizedUsers []int `form:"authorized_users" json:"authorized_users" xml:"authorized_users"`
	// Role IDs authorized to access the secret
	AuthorizedRoles []int `form:"authorized_roles" json:"authorized_roles" xml:"authorized_roles"`
}

CreateSecretRequestBody is the type of the "secrets" service "create secret" endpoint HTTP request body.

func NewCreateSecretRequestBody

func NewCreateSecretRequestBody(p *secrets.CreateSecretPayload) *CreateSecretRequestBody

NewCreateSecretRequestBody builds the HTTP request body from the payload of the "create secret" endpoint of the "secrets" service.

type CreateSecretUnauthorizedResponseBody

type CreateSecretUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CreateSecretUnauthorizedResponseBody is the type of the "secrets" service "create secret" endpoint HTTP response body for the "unauthorized" error.

type GetSecretForbiddenResponseBody

type GetSecretForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretForbiddenResponseBody is the type of the "secrets" service "get secret" endpoint HTTP response body for the "forbidden" error.

type GetSecretInternalErrorResponseBody

type GetSecretInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretInternalErrorResponseBody is the type of the "secrets" service "get secret" endpoint HTTP response body for the "internal_error" error.

type GetSecretInvalidParametersResponseBody

type GetSecretInvalidParametersResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretInvalidParametersResponseBody is the type of the "secrets" service "get secret" endpoint HTTP response body for the "invalid_parameters" error.

type GetSecretResponseBody

type GetSecretResponseBody struct {
	// The original path of the secret
	Path *string `form:"path,omitempty" json:"path,omitempty" xml:"path,omitempty"`
	// The owner of the secret
	Owner *UserResponseBody `form:"owner,omitempty" json:"owner,omitempty" xml:"owner,omitempty"`
	// Members authorized to access the secret
	AuthorizedUsers []*UserResponseBody `form:"authorized_users,omitempty" json:"authorized_users,omitempty" xml:"authorized_users,omitempty"`
	// Roles authorized to access the secret
	AuthorizedRoles []*RoleResponseBody `form:"authorized_roles,omitempty" json:"authorized_roles,omitempty" xml:"authorized_roles,omitempty"`
	// Creation timestamp of the secret
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// Last update timestamp of the secret
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
}

GetSecretResponseBody is the type of the "secrets" service "get secret" endpoint HTTP response body.

type GetSecretSecretNotFoundResponseBody

type GetSecretSecretNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretSecretNotFoundResponseBody is the type of the "secrets" service "get secret" endpoint HTTP response body for the "secret_not_found" error.

type GetSecretUnauthorizedResponseBody

type GetSecretUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretUnauthorizedResponseBody is the type of the "secrets" service "get secret" endpoint HTTP response body for the "unauthorized" error.

type GetSecretValueForbiddenResponseBody

type GetSecretValueForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretValueForbiddenResponseBody is the type of the "secrets" service "get secret value" endpoint HTTP response body for the "forbidden" error.

type GetSecretValueInternalErrorResponseBody

type GetSecretValueInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretValueInternalErrorResponseBody is the type of the "secrets" service "get secret value" endpoint HTTP response body for the "internal_error" error.

type GetSecretValueInvalidParametersResponseBody

type GetSecretValueInvalidParametersResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretValueInvalidParametersResponseBody is the type of the "secrets" service "get secret value" endpoint HTTP response body for the "invalid_parameters" error.

type GetSecretValueResponseBody

type GetSecretValueResponseBody struct {
	// The secret value
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
	// The original path of the secret
	Path *string `form:"path,omitempty" json:"path,omitempty" xml:"path,omitempty"`
}

GetSecretValueResponseBody is the type of the "secrets" service "get secret value" endpoint HTTP response body.

type GetSecretValueSecretNotFoundResponseBody

type GetSecretValueSecretNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretValueSecretNotFoundResponseBody is the type of the "secrets" service "get secret value" endpoint HTTP response body for the "secret_not_found" error.

type GetSecretValueUnauthorizedResponseBody

type GetSecretValueUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

GetSecretValueUnauthorizedResponseBody is the type of the "secrets" service "get secret value" endpoint HTTP response body for the "unauthorized" error.

type ListSecretsForbiddenResponseBody

type ListSecretsForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ListSecretsForbiddenResponseBody is the type of the "secrets" service "list secrets" endpoint HTTP response body for the "forbidden" error.

type ListSecretsInternalErrorResponseBody

type ListSecretsInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ListSecretsInternalErrorResponseBody is the type of the "secrets" service "list secrets" endpoint HTTP response body for the "internal_error" error.

type ListSecretsResponseBody

type ListSecretsResponseBody []*SecretInfoSummaryResponse

ListSecretsResponseBody is the type of the "secrets" service "list secrets" endpoint HTTP response body.

type ListSecretsUnauthorizedResponseBody

type ListSecretsUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ListSecretsUnauthorizedResponseBody is the type of the "secrets" service "list secrets" endpoint HTTP response body for the "unauthorized" error.

type RoleResponse

type RoleResponse struct {
	// Unique identifier for the role
	ID *int `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Name of the role
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Color associated with the role
	Color *string `form:"color,omitempty" json:"color,omitempty" xml:"color,omitempty"`
	// Is this role an admin role?
	Admin *bool `form:"admin,omitempty" json:"admin,omitempty" xml:"admin,omitempty"`
	// Role creation timestamp
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// Role last update timestamp
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
}

RoleResponse is used to define fields on response body types.

type RoleResponseBody

type RoleResponseBody struct {
	// Unique identifier for the role
	ID *int `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Name of the role
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Color associated with the role
	Color *string `form:"color,omitempty" json:"color,omitempty" xml:"color,omitempty"`
	// Is this role an admin role?
	Admin *bool `form:"admin,omitempty" json:"admin,omitempty" xml:"admin,omitempty"`
	// Role creation timestamp
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// Role last update timestamp
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
}

RoleResponseBody is used to define fields on response body types.

type SecretInfoSummaryResponse

type SecretInfoSummaryResponse struct {
	// The original path of the secret
	Path *string `form:"path,omitempty" json:"path,omitempty" xml:"path,omitempty"`
	// The owner of the secret
	Owner *UserResponse `form:"owner,omitempty" json:"owner,omitempty" xml:"owner,omitempty"`
	// Creation timestamp of the secret
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// Last update timestamp of the secret
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// Users authorized to access the secret
	Users []*UserResponse `form:"users,omitempty" json:"users,omitempty" xml:"users,omitempty"`
	// Roles authorized to access the secret
	Roles []*RoleResponse `form:"roles,omitempty" json:"roles,omitempty" xml:"roles,omitempty"`
}

SecretInfoSummaryResponse is used to define fields on response body types.

type UpdateSecretForbiddenResponseBody

type UpdateSecretForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UpdateSecretForbiddenResponseBody is the type of the "secrets" service "update secret" endpoint HTTP response body for the "forbidden" error.

type UpdateSecretInternalErrorResponseBody

type UpdateSecretInternalErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UpdateSecretInternalErrorResponseBody is the type of the "secrets" service "update secret" endpoint HTTP response body for the "internal_error" error.

type UpdateSecretInvalidParametersResponseBody

type UpdateSecretInvalidParametersResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UpdateSecretInvalidParametersResponseBody is the type of the "secrets" service "update secret" endpoint HTTP response body for the "invalid_parameters" error.

type UpdateSecretRequestBody

type UpdateSecretRequestBody struct {
	// Base64 encoded secret's path
	Path string `form:"path" json:"path" xml:"path"`
	// The secret value
	Value string `form:"value" json:"value" xml:"value"`
	// Users IDs authorized to access the secret
	AuthorizedUsers []int `form:"authorized_users" json:"authorized_users" xml:"authorized_users"`
	// Role IDs authorized to access the secret
	AuthorizedRoles []int `form:"authorized_roles" json:"authorized_roles" xml:"authorized_roles"`
}

UpdateSecretRequestBody is the type of the "secrets" service "update secret" endpoint HTTP request body.

func NewUpdateSecretRequestBody

func NewUpdateSecretRequestBody(p *secrets.UpdateSecretPayload) *UpdateSecretRequestBody

NewUpdateSecretRequestBody builds the HTTP request body from the payload of the "update secret" endpoint of the "secrets" service.

type UpdateSecretSecretNotFoundResponseBody

type UpdateSecretSecretNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UpdateSecretSecretNotFoundResponseBody is the type of the "secrets" service "update secret" endpoint HTTP response body for the "secret_not_found" error.

type UpdateSecretUnauthorizedResponseBody

type UpdateSecretUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

UpdateSecretUnauthorizedResponseBody is the type of the "secrets" service "update secret" endpoint HTTP response body for the "unauthorized" error.

type UserResponse

type UserResponse struct {
	// Unique identifier for the user
	ID *int `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The username
	Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"`
	// User creation timestamp
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// User last update timestamp
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// Roles assigned to the user
	Roles []*RoleResponse `form:"roles,omitempty" json:"roles,omitempty" xml:"roles,omitempty"`
}

UserResponse is used to define fields on response body types.

type UserResponseBody

type UserResponseBody struct {
	// Unique identifier for the user
	ID *int `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// The username
	Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"`
	// User creation timestamp
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// User last update timestamp
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// Roles assigned to the user
	Roles []*RoleResponseBody `form:"roles,omitempty" json:"roles,omitempty" xml:"roles,omitempty"`
}

UserResponseBody is used to define fields on response body types.

Jump to

Keyboard shortcuts

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