Documentation ¶
Index ¶
- Variables
- type ConmonInstance
- type ConmonOption
- func WithContainerID(ctrID string) ConmonOption
- func WithContainerUUID(ctrUUID string) ConmonOption
- func WithLogDriver(driver, path string) ConmonOption
- func WithPath(path string) ConmonOption
- func WithRuntimePath(path string) ConmonOption
- func WithStderr(stderr io.Writer) ConmonOption
- func WithStdout(stdout io.Writer) ConmonOption
- func WithVersion() ConmonOption
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConmonNotStarted = errors.New("conmon instance is not started")
)
Functions ¶
This section is empty.
Types ¶
type ConmonInstance ¶
type ConmonInstance struct {
// contains filtered or unexported fields
}
func CreateAndExecConmon ¶
func CreateAndExecConmon(options ...ConmonOption) (*ConmonInstance, error)
func NewConmonInstance ¶
func NewConmonInstance(options ...ConmonOption) (*ConmonInstance, error)
func (*ConmonInstance) Start ¶
func (ci *ConmonInstance) Start() error
func (*ConmonInstance) Wait ¶
func (ci *ConmonInstance) Wait() error
type ConmonOption ¶
type ConmonOption func(*ConmonInstance) error
func WithContainerID ¶
func WithContainerID(ctrID string) ConmonOption
func WithContainerUUID ¶
func WithContainerUUID(ctrUUID string) ConmonOption
func WithLogDriver ¶
func WithLogDriver(driver, path string) ConmonOption
func WithPath ¶
func WithPath(path string) ConmonOption
func WithRuntimePath ¶
func WithRuntimePath(path string) ConmonOption
func WithStderr ¶
func WithStderr(stderr io.Writer) ConmonOption
func WithStdout ¶
func WithStdout(stdout io.Writer) ConmonOption
func WithVersion ¶
func WithVersion() ConmonOption
Click to show internal directories.
Click to hide internal directories.