Documentation
¶
Index ¶
- Variables
- func Register(key string, impl SecretStorage)
- type Secret
- func (sw Secret) Error() string
- func (sw *Secret) Get() string
- func (sw Secret) InternalError() error
- func (sw Secret) New(s string) Secret
- func (sw Secret) ParseError() error
- func (sw *Secret) UnmarshalJSON(data []byte) error
- func (sw *Secret) UnmarshalText(text []byte) error
- func (sw *Secret) UnmarshalYAML(unmarshal func(interface{}) error) error
- type SecretStorage
Constants ¶
This section is empty.
Variables ¶
View Source
var RequiredSecret = &requiredSecretRule{message: "cannot be blank", skipNil: false}
Functions ¶
func Register ¶
func Register(key string, impl SecretStorage)
Register new SecretStorage reader interface
Types ¶
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
Secret object
func (Secret) ParseError ¶ added in v1.0.4
InternalError returns error
func (*Secret) UnmarshalJSON ¶
UnmarshalJSON read secrets from json
func (*Secret) UnmarshalText ¶ added in v1.0.7
UnmarshalText from text formats
func (*Secret) UnmarshalYAML ¶
UnmarshalYAML read secrets from yaml
type SecretStorage ¶
type SecretStorage interface {
Clone() SecretStorage
Read(path string) (string, error)
}
SecretStorage reader interface
Click to show internal directories.
Click to hide internal directories.