context

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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 LoadContext(projectDir string) *Context

func NewContext

func NewContext(projectDir string) *Context

func (*Context) ConnectionTest added in v0.0.3

func (context *Context) ConnectionTest(mgrCtx *Context) bool

func (*Context) GenerateHttpClient

func (context *Context) GenerateHttpClient(CertBundle []byte) (*http.Client, error)

func (*Context) GetActiveContext

func (context *Context) GetActiveContext(projectDir string) bool

func (*Context) ReadFromFile

func (context *Context) ReadFromFile() bool

func (*Context) SaveToFile

func (context *Context) SaveToFile(projectDir string) bool

func (*Context) SetActiveContext

func (context *Context) SetActiveContext(contextName string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL