Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Url Url `json:"url"`
User User `json:"user"`
Password Password `json:"pass"`
CacheEnabled bool `json:"cacheEnabled,omitempty"`
}
func ParseTeamvaultConfig ¶
type ConfigGenerator ¶
type ConfigGenerator interface {
Generate(ctx context.Context, sourceDirectory SourceDirectory, targetDirectory TargetDirectory) error
}
func NewConfigGenerator ¶
func NewConfigGenerator(configParser ConfigParser) ConfigGenerator
type ConfigParser ¶
func NewConfigParser ¶
func NewConfigParser( 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 NewCacheConnector ¶
func NewDummyConnector ¶
func NewDummyConnector() Connector
type CurrentRevision ¶
type CurrentRevision string
func (CurrentRevision) String ¶
func (t CurrentRevision) String() string
type HtpasswdGenerator ¶
func NewHtpasswdGenerator ¶
func NewHtpasswdGenerator(connector Connector) HtpasswdGenerator
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 TeamvaultConfigPath ¶
type TeamvaultConfigPath string
func (TeamvaultConfigPath) NormalizePath ¶
func (t TeamvaultConfigPath) NormalizePath() (TeamvaultConfigPath, error)
func (TeamvaultConfigPath) Parse ¶
func (t TeamvaultConfigPath) Parse() (*Config, error)
func (TeamvaultConfigPath) String ¶
func (t TeamvaultConfigPath) String() string
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
teamvault-config-dir-generator
command
|
|
|
teamvault-config-parser
command
|
|
|
teamvault-file
command
|
|
|
teamvault-password
command
|
|
|
teamvault-url
command
|
|
|
teamvault-username
command
|
|
|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.