clientcontext

package
v0.0.0-...-63b02d4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Err is raised when a context definition has issues.
	Err = errors.New("context error")

	// ConfigFilename is the file where the context information is stored
	ConfigFilename = "~/.opensvc/config"
)

Functions

func IsSet

func IsSet() bool

IsSet returns true if the OSVC_CONTEXT environment variable is set

Types

type T

type T struct {
	Cluster   cluster `json:"cluster"`
	User      user    `json:"user"`
	Namespace string  `json:"namespace"`
}

T is a dereferenced Cluster-User relation.

func New

func New() (T, error)

New return a remote cluster connection context (endpoint and user)

func (T) String

func (t T) String() string

Jump to

Keyboard shortcuts

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