Documentation ¶
Index ¶
- type Context
- func (context *Context) ConnectionTest(mgrCtx *Context) bool
- func (context *Context) GenerateHttpClient(CertBundle []byte) (*http.Client, error)
- func (context *Context) GetActiveContext(projectDir string) bool
- func (context *Context) ReadFromFile() bool
- func (context *Context) SaveToFile(projectDir string) bool
- func (context *Context) SetActiveContext(contextName string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { ApiURL string Name string DirectoryPath string CertBundle string Ca *bytes.Buffer `json:"-"` Cert *bytes.Buffer `json:"-"` PrivateKey *bytes.Buffer `json:"-"` ActiveContext string `json:"-"` Client *http.Client `json:"-"` }
func LoadContext ¶
func NewContext ¶
func (*Context) ConnectionTest ¶ added in v0.0.3
func (*Context) GenerateHttpClient ¶
func (*Context) GetActiveContext ¶
func (*Context) ReadFromFile ¶
func (*Context) SaveToFile ¶
func (*Context) SetActiveContext ¶
Click to show internal directories.
Click to hide internal directories.