Documentation ¶
Index ¶
- type Context
- func (context *Context) ConnectionTest() bool
- func (context *Context) Export(API string) (string, string, error)
- func (context *Context) GenerateHttpClient(CertBundle []byte) (*http.Client, error)
- func (context *Context) GetActiveContext() bool
- func (context *Context) Import(encrypted string, key string) error
- func (context *Context) ImportCertificates(key string) error
- func (context *Context) LoadContext() *Context
- func (context *Context) ReadFromFile() bool
- func (context *Context) SaveToFile() 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 { Directory string ApiURL string Name string CertBundle string Ca *bytes.Buffer `json:"-"` Cert *bytes.Buffer `json:"-"` PrivateKey *bytes.Buffer `json:"-"` ActiveContext string `json:"-"` ActiveGroup string `json:"-"` Client *http.Client `json:"-"` }
func NewContext ¶
func (*Context) ConnectionTest ¶ added in v0.0.3
func (*Context) GenerateHttpClient ¶
func (*Context) GetActiveContext ¶
func (*Context) ImportCertificates ¶ added in v0.0.41
func (*Context) LoadContext ¶ added in v0.0.35
func (*Context) ReadFromFile ¶
func (*Context) SaveToFile ¶
func (*Context) SetActiveContext ¶
Click to show internal directories.
Click to hide internal directories.