Documentation ¶
Index ¶
- func EnvParser(b []byte) ([]byte, error)
- func ExitCoder(f func(*cli.Context) error) func(*cli.Context) error
- func GenerateFileOptions(c *cli.Context) (map[string][]byte, map[string]*corepb.FileMode, map[string]*corepb.FileOwner)
- func GetHostname() string
- func GetNetworks(network string) map[string]string
- func GetSpecFromRemote(uri string) ([]byte, error)
- func NewCoreRPCClient(c *cli.Context) (corepb.CoreRPCClient, error)
- func ParseExtraResources(c *cli.Context) (map[string]any, error)
- func ParseRAMInHuman(ram string) (int64, error)
- func ReadAllFiles(files []string) map[string]*types.LinuxFile
- func SplitEquality(elements []string) map[string]string
- func SplitFiles(files []string) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFileOptions ¶
func GenerateFileOptions(c *cli.Context) (map[string][]byte, map[string]*corepb.FileMode, map[string]*corepb.FileOwner)
GenerateFileOptions returns file options
func GetNetworks ¶
GetNetworks returns a networkmode -> ip map
func GetSpecFromRemote ¶
GetSpecFromRemote gets specs from a remote position
func NewCoreRPCClient ¶
func NewCoreRPCClient(c *cli.Context) (corepb.CoreRPCClient, error)
NewCoreRPCClient returns an RPC client to use it actually wraps the GetRPCClient method
func ParseExtraResources ¶
ParseExtraResources .
func ParseRAMInHuman ¶
ParseRAMInHuman returns int value in bytes of a human readable string e.g. 100KB -> 102400
func ReadAllFiles ¶
ReadAllFiles open each pair in files and returns a map with key as dstfile, value as linux file files: list of srcfile:dstfile:mode:uid:gid
func SplitEquality ¶
SplitEquality transfers a list of aaa=bbb, xxx=yyy into {aaa:bbb, xxx:yyy}
func SplitFiles ¶
SplitFiles transfers a list of src:dst to {src: dst}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.