namespace

package
v0.0.0-...-73fa917 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHostNamespace

func NewHostNamespace() entity.HostNamespace

Types

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

Namespace stores env information from the session it has methods to get and set env variables from any kind of export (bash,sh)

func New

func New() *Namespace

func (*Namespace) Add

func (n *Namespace) Add(host string)

add namespace for host

func (*Namespace) Get

func (n *Namespace) Get(host string) entity.HostNamespace

Get returns HostNamespace for the given host

func (*Namespace) ParseEnvs

func (n *Namespace) ParseEnvs(input string, host string)

func (*Namespace) SetFromEnvString

func (n *Namespace) SetFromEnvString(input string, host string)

Jump to

Keyboard shortcuts

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