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 ¶
- func Create(ctx context.Context, reader io.Reader, options *CreateOptions) (*entitiesTypes.SecretCreateReport, error)
- func Exists(ctx context.Context, nameOrID string) (bool, error)
- func Inspect(ctx context.Context, nameOrID string, options *InspectOptions) (*entitiesTypes.SecretInfoReport, error)
- func List(ctx context.Context, options *ListOptions) ([]*entitiesTypes.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) GetDriverOpts() map[string]string
- func (o *CreateOptions) GetLabels() map[string]string
- func (o *CreateOptions) GetName() string
- func (o *CreateOptions) GetReplace() bool
- func (o *CreateOptions) ToParams() (url.Values, error)
- func (o *CreateOptions) WithDriver(value string) *CreateOptions
- func (o *CreateOptions) WithDriverOpts(value map[string]string) *CreateOptions
- func (o *CreateOptions) WithLabels(value map[string]string) *CreateOptions
- func (o *CreateOptions) WithName(value string) *CreateOptions
- func (o *CreateOptions) WithReplace(value bool) *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) (*entitiesTypes.SecretCreateReport, error)
Create creates a secret given some data
func Inspect ¶
func Inspect(ctx context.Context, nameOrID string, options *InspectOptions) (*entitiesTypes.SecretInfoReport, error)
Inspect returns low-level information about a secret.
func List ¶
func List(ctx context.Context, options *ListOptions) ([]*entitiesTypes.SecretInfoReport, error)
List returns information about existing secrets in the form of a slice.
Types ¶
type CreateOptions ¶
type CreateOptions struct { Name *string Driver *string DriverOpts map[string]string Labels map[string]string Replace *bool }
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 ¶
func (o *CreateOptions) GetDriverOpts() map[string]string
GetDriverOpts returns value of field DriverOpts
func (*CreateOptions) GetLabels ¶
func (o *CreateOptions) GetLabels() map[string]string
GetLabels returns value of field Labels
func (*CreateOptions) GetName ¶
func (o *CreateOptions) GetName() string
GetName returns value of field Name
func (*CreateOptions) GetReplace ¶
func (o *CreateOptions) GetReplace() bool
GetReplace returns value of field Replace
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 ¶
func (o *CreateOptions) WithDriverOpts(value map[string]string) *CreateOptions
WithDriverOpts set field DriverOpts to given value
func (*CreateOptions) WithLabels ¶
func (o *CreateOptions) WithLabels(value map[string]string) *CreateOptions
WithLabels set field Labels to given value
func (*CreateOptions) WithName ¶
func (o *CreateOptions) WithName(value string) *CreateOptions
WithName set field Name to given value
func (*CreateOptions) WithReplace ¶
func (o *CreateOptions) WithReplace(value bool) *CreateOptions
WithReplace set field Replace to given value
type InspectOptions ¶
type InspectOptions struct {
ShowSecret *bool
}
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) GetShowSecret ¶
func (o *InspectOptions) GetShowSecret() bool
GetShowSecret returns value of field ShowSecret
func (*InspectOptions) ToParams ¶
func (o *InspectOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*InspectOptions) WithShowSecret ¶
func (o *InspectOptions) WithShowSecret(value bool) *InspectOptions
WithShowSecret set field ShowSecret to given value
type ListOptions ¶
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 ¶
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 ¶
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