Documentation
¶
Index ¶
- Constants
- func DefaultPlannerClientConfigPath() string
- func NewFromConfig(config *Config) (*client.ClientWithResponses, error)
- func NewFromConfigFile(filename string) (*client.ClientWithResponses, error)
- func NewHTTPClientFromConfig(config *Config) (*http.Client, error)
- func WriteConfig(filename string, server string) error
- type Config
- type Service
Constants ¶
View Source
const (
// TestRootDirEnvKey is the environment variable key used to set the file system root when testing.
TestRootDirEnvKey = "PLANNER_TEST_ROOT_DIR"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultPlannerClientConfigPath ¶
func DefaultPlannerClientConfigPath() string
DefaultPlannerClientConfigPath returns the default path to the Planner client config file.
func NewFromConfig ¶
func NewFromConfig(config *Config) (*client.ClientWithResponses, error)
NewFromConfig returns a new Planner API client from the given config.
func NewFromConfigFile ¶
func NewFromConfigFile(filename string) (*client.ClientWithResponses, error)
NewFromConfigFile returns a new Planner API client using the config read from the given file.
func NewHTTPClientFromConfig ¶
NewHTTPClientFromConfig returns a new HTTP Client from the given config.
func WriteConfig ¶
WriteConfig writes a client config file using the given parameters.
Types ¶
type Config ¶
type Config struct { Service Service `json:"service"` // contains filtered or unexported fields }
Config holds the information needed to connect to a Planner API server
func NewDefault ¶
func NewDefault() *Config
func ParseConfigFile ¶
func (*Config) SetBaseDir ¶
Click to show internal directories.
Click to hide internal directories.