gsepipeline

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerMount

type ContainerMount struct {
	Source      string
	Destination string
}

ContainerMount definition for container mount

type ContainerReference

type ContainerReference struct {
	// The container id
	ID string `json:"id,omitempty"`

	CreateTime time.Time `json:"created,omitempty"`

	// The absolute name of the container. This is unique on the machine.
	Name string `json:"name,omitempty"`

	Image     string `json:"image,omitempty"`
	IPAddress string `json:"host,omitempty"`

	ContainerRootDirector string `json:"container_root,omitempty"`

	// Other names by which the container is known within a certain namespace.
	// This is unique within that namespace.
	Aliases []string `json:"aliases,omitempty"`

	// Namespace under which the aliases of a container are unique.
	// An example of a namespace is "docker" for Docker containers.
	Namespace string `json:"namespace,omitempty"`

	Labels map[string]string `json:"labels,omitempty"`

	ContainerInfo types.ContainerJSON `json:"-"`
}

ContainerReference Container reference contains enough information to uniquely identify a container

type EventJSON

type EventJSON struct {
	Status   string     `json:"status"`
	ID       string     `json:"id"`
	From     string     `json:"from"`
	Type     string     `json:"Type"`
	Action   string     `json:"Action"`
	Actor    eventActor `json:"Actor"`
	Time     uint64     `json:"time"`
	TimeNano uint64     `json:"timeNano"`
	// contains filtered or unexported fields
}

EventJSON event json

type LogMsg

type LogMsg struct {
	FileName     string              `json:"filename,omitempty"`
	Timestamp    time.Time           `json:"timestamp"`
	Stream       string              `json:"stream"`
	Log          interface{}         `json:"log"`
	DataID       uint64              `json:"dataid"`
	ContainerRef *ContainerReference `json:"container_info,omitempty"`
}

LogMsg log object

type Storage

type Storage interface {
	AddStats(msg LogMsg) error
}

Storage save data to gse interface

func NewGseStorage

func NewGseStorage(endpoint string) (Storage, error)

NewGseStorage create a new gseclient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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