requests

package
v1.2.1-dev.36 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretsKeyValue

type SecretsKeyValue struct {
	Key   string `json:"key" validate:"required"`
	Value string `json:"value" validate:"required"`
}

SecretsKeyValue is a secret key/value pair to be stored in the Secret Store See detail specified by the V2 API swagger in openapi/v2

type SecretsRequest

type SecretsRequest struct {
	common.BaseRequest `json:",inline"`
	Path               string            `json:"path" validate:"required"`
	Secrets            []SecretsKeyValue `json:"secrets" validate:"required,gt=0,dive"`
}

SecretsRequest is the request DTO for storing supplied secrets at specified Path in the Secret Store See detail specified by the V2 API swagger in openapi/v2

func (*SecretsRequest) UnmarshalJSON

func (sr *SecretsRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the Unmarshaler interface for the SecretsRequest type

func (SecretsRequest) Validate

func (sr SecretsRequest) Validate() error

Validate satisfies the Validator interface

Jump to

Keyboard shortcuts

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