Documentation ¶
Index ¶
- func Create(ctx context.Context, reader io.Reader, options *CreateOptions) (*entities.SecretCreateReport, error)
- func Inspect(ctx context.Context, nameOrID string, options *InspectOptions) (*entities.SecretInfoReport, error)
- func List(ctx context.Context, options *ListOptions) ([]*entities.SecretInfoReport, error)
- func Remove(ctx context.Context, nameOrID string) error
- type CreateOptions
- func (o *CreateOptions) Changed(fieldName string) bool
- func (o *CreateOptions) GetDriver() string
- func (o *CreateOptions) GetName() string
- func (o *CreateOptions) ToParams() (url.Values, error)
- func (o *CreateOptions) WithDriver(value string) *CreateOptions
- func (o *CreateOptions) WithName(value string) *CreateOptions
- type InspectOptions
- type ListOptions
- type RemoveOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, reader io.Reader, options *CreateOptions) (*entities.SecretCreateReport, error)
Create creates a secret given some data
func Inspect ¶
func Inspect(ctx context.Context, nameOrID string, options *InspectOptions) (*entities.SecretInfoReport, error)
Inspect returns low-level information about a secret.
func List ¶
func List(ctx context.Context, options *ListOptions) ([]*entities.SecretInfoReport, error)
List returns information about existing secrets in the form of a slice.
Types ¶
type CreateOptions ¶
CreateOptions are optional options for Creating secrets
func (*CreateOptions) WithDriver ¶
func (o *CreateOptions) WithDriver(value string) *CreateOptions
WithDriver
func (*CreateOptions) WithName ¶
func (o *CreateOptions) WithName(value string) *CreateOptions
WithName
type InspectOptions ¶
type InspectOptions struct { }
InspectOptions are optional options for inspecting secrets
type ListOptions ¶
type ListOptions struct { }
ListOptions are optional options for inspecting secrets
type RemoveOptions ¶
type RemoveOptions struct { }
RemoveOptions are optional options for removing secrets
Click to show internal directories.
Click to hide internal directories.