Documentation ¶
Index ¶
- Variables
- func EnsureDocker(binary string, g *GadgetContext) error
- func EnsureIp() error
- func EnsureKeys() error
- func GadgetInstallConfig(g *GadgetContext) error
- func GadgetInstallKeys() error
- func GadgetLogin(keyLocation string) (*ssh.Client, error)
- func GenGadgetKeys() (string, string, error)
- func PathExists(path string) (bool, error)
- func PrependToStrings(stringArray []string, prefix string) []string
- func RequiredSsh() error
- func RunLocalCommand(binary string, filter string, g *GadgetContext, arguments ...string) (string, string, error)
- func RunRemoteCommand(client *ssh.Client, cmd ...string) (*bytes.Buffer, *bytes.Buffer, error)
- func WalkUp(bottom_dir string) (string, error)
- type GadgetConfig
- type GadgetContainer
- type GadgetContainers
- type GadgetContext
- type GadgetRootfs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GadgetPrivKeyLocation = "" GadgetPubKeyLocation = "" )
Functions ¶
func EnsureDocker ¶ added in v0.5.1
func EnsureDocker(binary string, g *GadgetContext) error
func EnsureKeys ¶
func EnsureKeys() error
func GadgetInstallConfig ¶
func GadgetInstallConfig(g *GadgetContext) error
func GadgetInstallKeys ¶
func GadgetInstallKeys() error
func GenGadgetKeys ¶
func PathExists ¶
func PrependToStrings ¶
func RequiredSsh ¶
func RequiredSsh() error
func RunLocalCommand ¶
func RunRemoteCommand ¶
Types ¶
type GadgetConfig ¶
type GadgetConfig struct { Spec string Name string UUID string Type string Rootfs GadgetRootfs "rootfs,omitempty" Onboot []GadgetContainer Services []GadgetContainer }
func CleanConfig ¶
func CleanConfig(g GadgetConfig) GadgetConfig
func ParseConfig ¶
func ParseConfig(config []byte) (GadgetConfig, error)
func TemplateConfig ¶
func TemplateConfig(gName, gUu1, gUu2 string) GadgetConfig
type GadgetContainer ¶
type GadgetContainer struct { Name string UUID string Image string Directory string Net string PID string "pid,omitempty" Readonly bool Forking bool Command []string `yaml:",flow"` Binds []string `yaml:",flow"` Capabilities []string `yaml:",flow"` Devices []string `yaml:",flow"` Alias string "alias,omitempty" ImageAlias string "imagealias,omitempty" }
type GadgetContainers ¶
type GadgetContainers []GadgetContainer
func FindStagedContainers ¶
func FindStagedContainers(args []string, containers GadgetContainers) (GadgetContainers, error)
func (GadgetContainers) Find ¶
func (containers GadgetContainers) Find(name string) (GadgetContainer, error)
type GadgetContext ¶
type GadgetContext struct { Config GadgetConfig Verbose bool WorkingDirectory string }
func (*GadgetContext) LoadConfig ¶
func (g *GadgetContext) LoadConfig() error
type GadgetRootfs ¶ added in v0.5.1
Click to show internal directories.
Click to hide internal directories.