Documentation
¶
Index ¶
- func CreateHttpClient() *http.Client
- type ApiUrl
- type Config
- type ConfigGenerator
- type ConfigParser
- type Connector
- func CreateConnector(apiURL Url, apiUser User, apiPassword Password, staging Staging, ...) Connector
- func CreateConnectorWithConfig(configPath TeamvaultConfigPath, apiURL Url, apiUser User, apiPassword Password, ...) (Connector, error)
- func CreateRemoteConnector(apiURL Url, apiUser User, apiPassword Password) Connector
- func NewCacheConnector(connector Connector) Connector
- func NewDiskFallbackConnector(connector Connector) Connector
- func NewDummyConnector() Connector
- func NewRemoteConnector(httpClient *http.Client, url Url, user User, pass Password) Connector
- type CurrentRevision
- type File
- type HtpasswdGenerator
- type Key
- type Password
- type SourceDirectory
- type Staging
- type TargetDirectory
- type TeamvaultConfigPath
- type Url
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHttpClient ¶
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 CreateConnector ¶
func CreateRemoteConnector ¶
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.