Documentation
¶
Index ¶
- Constants
- func Abspath(p string) string
- func FromToml(ctx *idp.Context, t *toml.Tree) error
- func GetClient() (*sdk.Client, error)
- func GetClientSystemTenant() (*sdk.Client, error)
- func GetProfile(name string) (map[string]string, error)
- func Login(cmd *cobra.Command) (*idp.Context, error)
- type Cfg
- type Environment
- type GlogWrapper
- type IdpService
- type ScloudTesExecCancledError
- type Service
Constants ¶
View Source
const DefaultEnv = "prod"
View Source
const SCloudHome = "SCLOUD_HOME"
View Source
const (
// use ScloudTestDone to indicate the scloud test command is done when using testhook-dryrun flag
ScloudTestDone = "Test Command is done\n"
)
Variables ¶
This section is empty.
Functions ¶
func Abspath ¶
Returns an absolute path. If the given path is not absolute it looks for the environment variable SCLOUD HOME and is joined with that. If the environment variable is not defined, the path is joined with the path to the home dir
func GetClientSystemTenant ¶
func GetProfile ¶
Returns the named application profile.
Types ¶
type Cfg ¶
type Cfg struct {
Profiles map[string]map[string]string `yaml:"profiles"`
Environments map[string]*Environment `yaml:"environments"`
}
type Environment ¶
type Environment struct {
APIService Service `yaml:"api-service"`
AppService Service `yaml:"app-service"`
IdpService IdpService `yaml:"idp-service"`
Profile string `yaml:"profile"`
}
func GetEnvironment ¶
func GetEnvironment(name string) (*Environment, error)
type GlogWrapper ¶
type GlogWrapper struct {
}
GlogWrapper is used to wrap glog.info() in a Print() function usable by splunk-cloud-sdk-go
func (*GlogWrapper) Print ¶
func (gw *GlogWrapper) Print(v ...interface{})
type IdpService ¶
type ScloudTesExecCancledError ¶
type ScloudTesExecCancledError struct {
}
func (ScloudTesExecCancledError) Error ¶
func (ste ScloudTesExecCancledError) Error() string
Click to show internal directories.
Click to hide internal directories.