secrets

package
v3.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Index

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.

func Remove

func Remove(ctx context.Context, nameOrID string) error

Remove removes a secret from storage

Types

type CreateOptions

type CreateOptions struct {
	Name       *string
	Driver     *string
	DriverOpts map[string]string
}

CreateOptions are optional options for Creating secrets

func (*CreateOptions) Changed

func (o *CreateOptions) Changed(fieldName string) bool

Changed returns true if named field has been set

func (*CreateOptions) GetDriver

func (o *CreateOptions) GetDriver() string

GetDriver returns value of field Driver

func (*CreateOptions) GetDriverOpts added in v3.3.0

func (o *CreateOptions) GetDriverOpts() map[string]string

GetDriverOpts returns value of field DriverOpts

func (*CreateOptions) GetName

func (o *CreateOptions) GetName() string

GetName returns value of field Name

func (*CreateOptions) ToParams

func (o *CreateOptions) ToParams() (url.Values, error)

ToParams formats struct fields to be passed to API service

func (*CreateOptions) WithDriver

func (o *CreateOptions) WithDriver(value string) *CreateOptions

WithDriver set field Driver to given value

func (*CreateOptions) WithDriverOpts added in v3.3.0

func (o *CreateOptions) WithDriverOpts(value map[string]string) *CreateOptions

WithDriverOpts set field DriverOpts to given value

func (*CreateOptions) WithName

func (o *CreateOptions) WithName(value string) *CreateOptions

WithName set field Name to given value

type InspectOptions

type InspectOptions struct {
}

InspectOptions are optional options for inspecting secrets

func (*InspectOptions) Changed

func (o *InspectOptions) Changed(fieldName string) bool

Changed returns true if named field has been set

func (*InspectOptions) ToParams

func (o *InspectOptions) ToParams() (url.Values, error)

ToParams formats struct fields to be passed to API service

type ListOptions

type ListOptions struct {
	Filters map[string][]string
}

ListOptions are optional options for inspecting secrets

func (*ListOptions) Changed

func (o *ListOptions) Changed(fieldName string) bool

Changed returns true if named field has been set

func (*ListOptions) GetFilters added in v3.4.0

func (o *ListOptions) GetFilters() map[string][]string

GetFilters returns value of field Filters

func (*ListOptions) ToParams

func (o *ListOptions) ToParams() (url.Values, error)

ToParams formats struct fields to be passed to API service

func (*ListOptions) WithFilters added in v3.4.0

func (o *ListOptions) WithFilters(value map[string][]string) *ListOptions

WithFilters set field Filters to given value

type RemoveOptions

type RemoveOptions struct {
}

RemoveOptions are optional options for removing secrets

func (*RemoveOptions) Changed

func (o *RemoveOptions) Changed(fieldName string) bool

Changed returns true if named field has been set

func (*RemoveOptions) ToParams

func (o *RemoveOptions) ToParams() (url.Values, error)

ToParams formats struct fields to be passed to API service

Jump to

Keyboard shortcuts

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