Documentation ¶
Index ¶
- type Cache
- func (c *Cache) File(ctx context.Context, key Key) (File, error)
- func (c *Cache) Password(ctx context.Context, key Key) (Password, error)
- func (c *Cache) Search(ctx context.Context, key string) ([]Key, error)
- func (c *Cache) Url(ctx context.Context, key Key) (Url, error)
- func (c *Cache) User(ctx context.Context, key Key) (User, error)
- type ConfigGenerator
- type ConfigParser
- type Connector
- type File
- type Htpasswd
- type Key
- type Password
- type SourceDirectory
- type Staging
- type TargetDirectory
- type TeamvaultApiUrl
- type TeamvaultConfig
- type TeamvaultConfigPath
- type TeamvaultCurrentRevision
- type Url
- type User
- type VariableName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type ConfigGenerator ¶
type ConfigGenerator interface {
Generate(ctx context.Context, sourceDirectory SourceDirectory, targetDirectory TargetDirectory) error
}
func NewGenerator ¶
func NewGenerator(configParser ConfigParser) ConfigGenerator
type ConfigParser ¶
func NewParser ¶
func NewParser( teamvaultConnector Connector, ) ConfigParser
type Connector ¶
type Connector interface { Password(ctx context.Context, key Key) (Password, error) User(ctx context.Context, key Key) (User, error) Url(ctx context.Context, key Key) (Url, error) File(ctx context.Context, key Key) (File, error) Search(ctx context.Context, name string) ([]Key, error) }
func NewDummyConnector ¶
func NewDummyConnector() Connector
type SourceDirectory ¶
type SourceDirectory string
func (SourceDirectory) String ¶
func (s SourceDirectory) String() string
type TargetDirectory ¶
type TargetDirectory string
func (TargetDirectory) String ¶
func (t TargetDirectory) String() string
type TeamvaultApiUrl ¶
type TeamvaultApiUrl string
func (TeamvaultApiUrl) Key ¶
func (t TeamvaultApiUrl) Key() (Key, error)
func (TeamvaultApiUrl) String ¶
func (t TeamvaultApiUrl) String() string
type TeamvaultConfig ¶
type TeamvaultConfig struct { Url Url `json:"url"` User User `json:"user"` Password Password `json:"pass"` }
func ParseTeamvaultConfig ¶
func ParseTeamvaultConfig(content []byte) (*TeamvaultConfig, error)
type TeamvaultConfigPath ¶
type TeamvaultConfigPath string
func (TeamvaultConfigPath) NormalizePath ¶
func (d TeamvaultConfigPath) NormalizePath() (TeamvaultConfigPath, error)
func (TeamvaultConfigPath) Parse ¶
func (t TeamvaultConfigPath) Parse() (*TeamvaultConfig, error)
func (TeamvaultConfigPath) String ¶
func (t TeamvaultConfigPath) String() string
type TeamvaultCurrentRevision ¶
type TeamvaultCurrentRevision string
func (TeamvaultCurrentRevision) String ¶
func (t TeamvaultCurrentRevision) String() string
type VariableName ¶
type VariableName string
func (VariableName) String ¶
func (v VariableName) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.