Documentation ¶
Index ¶
- func BuildEmptyDataVolume(size unikos.MegaBytes) (string, error)
- func BuildEmptyDataVolumeWithType(size unikos.MegaBytes, volType string) (string, error)
- func BuildRawDataImage(dataTar io.ReadCloser, size unikos.MegaBytes, usePartitionTables bool) (string, error)
- func BuildRawDataImageWithType(dataTar io.ReadCloser, size unikos.MegaBytes, volType string, ...) (string, error)
- func InitContainers() error
- func LogCommand(cmd *exec.Cmd, asDebug bool)
- func ReaderWithProgress(r io.Reader, total int64) io.Reader
- func Redact(str, substr string) string
- func Retry(retries int, sleep time.Duration, action func() error) error
- func StringInSlice(a string, list []string) bool
- type AddTraceHook
- type Container
- func (c *Container) BuildCmd(arguments ...string) *exec.Cmd
- func (c *Container) CombinedOutput(arguments ...string) ([]byte, error)
- func (c *Container) Interactive(i bool) *Container
- func (c *Container) Output(arguments ...string) ([]byte, error)
- func (c *Container) Privileged(p bool) *Container
- func (c *Container) Run(arguments ...string) error
- func (c *Container) Stop() error
- func (c *Container) WithEntrypoint(entrypoint string) *Container
- func (c *Container) WithEnv(key, value string) *Container
- func (c *Container) WithEnvs(vars map[string]string) *Container
- func (c *Container) WithName(name string) *Container
- func (c *Container) WithNet(net string) *Container
- func (c *Container) WithVolume(hostdir, containerdir string) *Container
- func (c *Container) WithVolumes(vols map[string]string) *Container
- type RedactedTextFormatter
- type TeeHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRawDataImage ¶
func InitContainers ¶
func InitContainers() error
func LogCommand ¶
func StringInSlice ¶
Types ¶
type AddTraceHook ¶
type AddTraceHook struct {
Full bool
}
func (*AddTraceHook) Levels ¶
func (h *AddTraceHook) Levels() []logrus.Level
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func (*Container) CombinedOutput ¶
func (*Container) Interactive ¶
func (*Container) Privileged ¶
func (*Container) WithEntrypoint ¶
func (*Container) WithVolume ¶
type RedactedTextFormatter ¶
type RedactedTextFormatter struct { // Set to true to bypass checking for a TTY before outputting colors. ForceColors bool // Force disabling colors. DisableColors bool // Disable timestamp logging. useful when output is redirected to logging // system that already adds timestamps. DisableTimestamp bool // Enable logging the full timestamp when a TTY is attached instead of just // the time passed since beginning of execution. FullTimestamp bool // TimestampFormat to use for display when a full timestamp is printed TimestampFormat string // The fields are sorted by default for a consistent output. For applications // that log extremely frequently and don't use the JSON formatter this may not // be desired. DisableSorting bool // Redactions specifies sensitive strings that should be redacted (replaced // with *'s) in all outputs. Redactions []string }
Click to show internal directories.
Click to hide internal directories.