runc

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 26 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataDecoder added in v0.24.0

func MetadataDecoder(raw json.RawMessage) (getter.Getter, error)

MetadataDecoder implements a json message raw decoder

func NewProbe

func NewProbe(ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)

NewProbe returns a new runc topology probe

func Register added in v0.26.0

func Register()

Register registers graph metadata decoders

Types

type CreateConfig added in v0.24.0

type CreateConfig struct {
	Image   string         `json:",omitempty"`
	ImageID string         `json:",omitempty"`
	Labels  graph.Metadata `json:",omitempty" field:"Metadata"`
}

CreateConfig describes the creating parameters of a runc container easyjson:json gendecoder

func (*CreateConfig) GetField added in v0.26.0

func (obj *CreateConfig) GetField(key string) (interface{}, error)

func (*CreateConfig) GetFieldBool added in v0.26.0

func (obj *CreateConfig) GetFieldBool(key string) (bool, error)

func (*CreateConfig) GetFieldInt64 added in v0.26.0

func (obj *CreateConfig) GetFieldInt64(key string) (int64, error)

func (*CreateConfig) GetFieldKeys added in v0.26.0

func (obj *CreateConfig) GetFieldKeys() []string

func (*CreateConfig) GetFieldString added in v0.26.0

func (obj *CreateConfig) GetFieldString(key string) (string, error)

func (CreateConfig) MarshalEasyJSON added in v0.26.0

func (v CreateConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CreateConfig) MarshalJSON added in v0.26.0

func (v CreateConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CreateConfig) MatchBool added in v0.26.0

func (obj *CreateConfig) MatchBool(key string, predicate getter.BoolPredicate) bool

func (*CreateConfig) MatchInt64 added in v0.26.0

func (obj *CreateConfig) MatchInt64(key string, predicate getter.Int64Predicate) bool

func (*CreateConfig) MatchString added in v0.26.0

func (obj *CreateConfig) MatchString(key string, predicate getter.StringPredicate) bool

func (*CreateConfig) UnmarshalEasyJSON added in v0.26.0

func (v *CreateConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CreateConfig) UnmarshalJSON added in v0.26.0

func (v *CreateConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Hosts added in v0.24.0

type Hosts struct {
	IP       string         `json:",omitempty"`
	Hostname string         `json:",omitempty"`
	ByIP     graph.Metadata `json:",omitempty" field:"Metadata"`
}

Hosts describes a runc host easyjson:json gendecoder

func (*Hosts) GetField added in v0.26.0

func (obj *Hosts) GetField(key string) (interface{}, error)

func (*Hosts) GetFieldBool added in v0.26.0

func (obj *Hosts) GetFieldBool(key string) (bool, error)

func (*Hosts) GetFieldInt64 added in v0.26.0

func (obj *Hosts) GetFieldInt64(key string) (int64, error)

func (*Hosts) GetFieldKeys added in v0.26.0

func (obj *Hosts) GetFieldKeys() []string

func (*Hosts) GetFieldString added in v0.26.0

func (obj *Hosts) GetFieldString(key string) (string, error)

func (Hosts) MarshalEasyJSON added in v0.26.0

func (v Hosts) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Hosts) MarshalJSON added in v0.26.0

func (v Hosts) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Hosts) MatchBool added in v0.26.0

func (obj *Hosts) MatchBool(key string, predicate getter.BoolPredicate) bool

func (*Hosts) MatchInt64 added in v0.26.0

func (obj *Hosts) MatchInt64(key string, predicate getter.Int64Predicate) bool

func (*Hosts) MatchString added in v0.26.0

func (obj *Hosts) MatchString(key string, predicate getter.StringPredicate) bool

func (*Hosts) UnmarshalEasyJSON added in v0.26.0

func (v *Hosts) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Hosts) UnmarshalJSON added in v0.26.0

func (v *Hosts) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Metadata added in v0.24.0

type Metadata struct {
	ContainerID  string         `json:",omitempty"`
	Status       string         `json:",omitempty"`
	Labels       graph.Metadata `json:",omitempty" field:"Metadata"`
	CreateConfig *CreateConfig  `json:",omitempty"`
	Hosts        *Hosts         `json:",omitempty"`
}

Metadata describes the information sotred for a runc container easyjson:json gendecoder

func (*Metadata) GetField added in v0.26.0

func (obj *Metadata) GetField(key string) (interface{}, error)

func (*Metadata) GetFieldBool added in v0.26.0

func (obj *Metadata) GetFieldBool(key string) (bool, error)

func (*Metadata) GetFieldInt64 added in v0.26.0

func (obj *Metadata) GetFieldInt64(key string) (int64, error)

func (*Metadata) GetFieldKeys added in v0.26.0

func (obj *Metadata) GetFieldKeys() []string

func (*Metadata) GetFieldString added in v0.26.0

func (obj *Metadata) GetFieldString(key string) (string, error)

func (Metadata) MarshalEasyJSON added in v0.26.0

func (v Metadata) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Metadata) MarshalJSON added in v0.26.0

func (v Metadata) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Metadata) MatchBool added in v0.26.0

func (obj *Metadata) MatchBool(key string, predicate getter.BoolPredicate) bool

func (*Metadata) MatchInt64 added in v0.26.0

func (obj *Metadata) MatchInt64(key string, predicate getter.Int64Predicate) bool

func (*Metadata) MatchString added in v0.26.0

func (obj *Metadata) MatchString(key string, predicate getter.StringPredicate) bool

func (*Metadata) UnmarshalEasyJSON added in v0.26.0

func (v *Metadata) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Metadata) UnmarshalJSON added in v0.26.0

func (v *Metadata) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ProbeHandler added in v0.25.0

type ProbeHandler struct {
	insanelock.RWMutex
	*ns.ProbeHandler
	// contains filtered or unexported fields
}

ProbeHandler describes a Docker topology graph that enhance the graph

func (*ProbeHandler) Start added in v0.25.0

func (p *ProbeHandler) Start() error

Start the probe

func (*ProbeHandler) Stop added in v0.25.0

func (p *ProbeHandler) Stop()

Stop the probe

Jump to

Keyboard shortcuts

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