Documentation
¶
Index ¶
- type Client
- func (c *Client) AdminDeleteKey(keyName string) error
- func (c *Client) AdminDumpKeys(output string) error
- func (c *Client) AdminGetHashField(keyName string, fieldName string) (string, error)
- func (c *Client) AdminGetKeyAsJSON(keyName string) ([]byte, error)
- func (c *Client) AdminGetKeyAsTEXT(keyName string) (string, error)
- func (c *Client) AdminGetKeyType(keyName string) (string, error)
- func (c *Client) AdminGetListIndex(keyName string, index string) (string, error)
- func (c *Client) AdminListAppend(keyName string, value string) error
- func (c *Client) AdminListHashFields(keyName string) ([]string, error)
- func (c *Client) AdminListKeys(filter string) ([]string, error)
- func (c *Client) AdminSetHashField(keyName string, fieldName string, value string) error
- func (c *Client) AdminSetKeyFromJSON(keyName string, jsonblob []byte) error
- func (c *Client) AdminSetStringKey(keyName string, value string) error
- func (c *Client) DELETERequest(path string) ([]byte, error)
- func (c *Client) GETRequest(path string, accept string) ([]byte, error)
- func (c *Client) GETRequestJSON(path string) ([]byte, error)
- func (c *Client) GETRequestTEXT(path string) ([]byte, error)
- func (c *Client) GetHash(key string) (HashResponse, error)
- func (c *Client) GetHashValue(key string) ([]KeyPair, error)
- func (c *Client) GetList(key string) (ListResponse, error)
- func (c *Client) GetListValue(key string) ([]string, error)
- func (c *Client) GetListValueDebug(key string) ([]ValueSource, error)
- func (c *Client) GetListValueJoined(key string, join_char string) (string, error)
- func (c *Client) GetString(key string) (StringResponse, error)
- func (c *Client) GetStringValue(key string, v ...string) (string, error)
- func (c *Client) GetStringValueDebug(key string, v ...string) (ValueSource, error)
- func (c *Client) HashExists(key string) (bool, error)
- func (c *Client) ListExists(key string) (bool, error)
- func (c *Client) LoadConfigFile(path string) (*TemplateConfig, error)
- func (c *Client) LoadConfigFiles() (TemplateConfigs, error)
- func (c *Client) PATCHRequestJSON(path string, data []byte) ([]byte, error)
- func (c *Client) POSTRequestJSON(path string, data []byte) ([]byte, error)
- func (c *Client) StringExists(key string) (bool, error)
- type DataRequest
- type HashResponse
- type KeyPair
- type KeyResponse
- type ListResponse
- type SimpleListResponse
- type StringKeyResponse
- type StringResponse
- type TemplateConfig
- type TemplateConfigFile
- type TemplateConfigs
- type ValueSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
TemplateDir string
ConfigDir string
// contains filtered or unexported fields
}
func InitiateClient ¶
func (*Client) AdminDeleteKey ¶
func (*Client) AdminDumpKeys ¶
func (*Client) AdminGetHashField ¶
func (*Client) AdminGetKeyAsJSON ¶
func (*Client) AdminGetKeyAsTEXT ¶
func (*Client) AdminGetListIndex ¶
func (*Client) AdminListAppend ¶
func (*Client) AdminListHashFields ¶
func (*Client) AdminSetHashField ¶
func (*Client) AdminSetKeyFromJSON ¶
func (*Client) AdminSetStringKey ¶
func (*Client) GetListValueDebug ¶
func (c *Client) GetListValueDebug(key string) ([]ValueSource, error)
func (*Client) GetListValueJoined ¶
func (*Client) GetStringValue ¶
func (*Client) GetStringValueDebug ¶
func (c *Client) GetStringValueDebug(key string, v ...string) (ValueSource, error)
func (*Client) LoadConfigFile ¶
func (c *Client) LoadConfigFile(path string) (*TemplateConfig, error)
func (*Client) LoadConfigFiles ¶
func (c *Client) LoadConfigFiles() (TemplateConfigs, error)
func (*Client) PATCHRequestJSON ¶
func (*Client) POSTRequestJSON ¶
type DataRequest ¶
type DataRequest struct {
Data string `json:"data"`
}
type HashResponse ¶
type HashResponse struct {
Type string `json:"type"`
Data map[string]ValueSource `json:"data"`
}
type KeyResponse ¶
type KeyResponse struct {
Type string `json:"type"`
Data interface{} `json:"data"`
}
type ListResponse ¶
type ListResponse struct {
Type string `json:"type"`
Data []ValueSource `json:"data"`
}
type SimpleListResponse ¶
type SimpleListResponse struct {
Data []string `json:"data"`
}
type StringKeyResponse ¶
type StringResponse ¶
type StringResponse struct {
Type string `json:"type"`
Data ValueSource `json:"data"`
}
type TemplateConfig ¶
type TemplateConfig struct {
Src string `toml:"src"`
Name string
Dest string `toml:"dest"`
TempDest string
Uid int `toml:"uid"`
Gid int `toml:"gid"`
FileMode os.FileMode
Mode string `toml:"mode"`
CheckCmd string `toml:"check_cmd"`
}
func (*TemplateConfig) Process ¶
func (t *TemplateConfig) Process(funcMap map[string]interface{}) error
func (*TemplateConfig) Validate ¶
func (t *TemplateConfig) Validate() error
type TemplateConfigFile ¶
type TemplateConfigFile struct {
Tpl TemplateConfig `toml:"template"`
}
type TemplateConfigs ¶
type TemplateConfigs []*TemplateConfig
type ValueSource ¶
Click to show internal directories.
Click to hide internal directories.