tables

package
v0.0.0-...-e9d4405 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainersTable

type ContainersTable struct {
	// contains filtered or unexported fields
}

ContainersTable implements the Table interface, Uses kubeclient to extract information about pods

func NewContainersTable

func NewContainersTable(kubeclient kubernetes.Interface) *ContainersTable

NewContainersTable creates a new ContainersTable saves given initialized kubernetes client

func (*ContainersTable) Columns

func (t *ContainersTable) Columns() []table.ColumnDefinition

Columns Retrieves the initialized columns

func (*ContainersTable) Generate

func (t *ContainersTable) Generate(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error)

Generate uses the api to retrieve information on all pods

func (*ContainersTable) Name

func (t *ContainersTable) Name() string

Name Returns name of table

type DeploymentsTable

type DeploymentsTable struct {
	// contains filtered or unexported fields
}

DeploymentsTable implements the Table interface, Uses kubeclient to extract information about pods

func NewDeploymentsTable

func NewDeploymentsTable(kubeclient kubernetes.Interface) *DeploymentsTable

NewDeploymentsTable creates a new DeploymentsTable saves given initialized kubernetes client

func (*DeploymentsTable) Columns

func (t *DeploymentsTable) Columns() []table.ColumnDefinition

Columns Retrieves the initialized columns

func (*DeploymentsTable) Generate

func (t *DeploymentsTable) Generate(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error)

Generate uses the api to retrieve information on all pods

func (*DeploymentsTable) Name

func (t *DeploymentsTable) Name() string

Name Returns name of table

type NodesTable

type NodesTable struct {
	// contains filtered or unexported fields
}

NodesTable implements the Table interface, Uses kubeclient to extract information about pods

func NewNodesTable

func NewNodesTable(kubeclient kubernetes.Interface, mc metrics.Interface) *NodesTable

NewNodesTable creates a new NodesTable saves given initialized kubernetes client

func (*NodesTable) Columns

func (t *NodesTable) Columns() []table.ColumnDefinition

Columns Retrieves the initialized columns

func (*NodesTable) Generate

func (t *NodesTable) Generate(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error)

Generate uses the api to retrieve information on all pods

func (*NodesTable) Name

func (t *NodesTable) Name() string

Name Returns name of table

type PodsTable

type PodsTable struct {
	// contains filtered or unexported fields
}

PodsTable implements the Table interface, Uses kubeclient to extract information about pods

func NewPodsTable

func NewPodsTable(kubeclient kubernetes.Interface) *PodsTable

NewPodsTable creates a new PodsTable saves given initialized kubernetes client

func (*PodsTable) Columns

func (t *PodsTable) Columns() []table.ColumnDefinition

Columns Retrieves the initialized columns

func (*PodsTable) Generate

func (t *PodsTable) Generate(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error)

Generate uses the api to retrieve information on all pods

func (*PodsTable) Name

func (t *PodsTable) Name() string

Name Returns name of table

type Table

type Table interface {
	// TODO: change the return value of Genreate() to be map to inteface{} ?
	Generate(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error)
	Columns() []table.ColumnDefinition
	Name() string
}

Table inteface defines the basic Table implementation mechanism for os-query

type VolumeRow

type VolumeRow struct {
	// contains filtered or unexported fields
}

type VolumesTable

type VolumesTable struct {
	// contains filtered or unexported fields
}

VolumesTable implements the Table interface, Uses kubeclient to extract information about pods

func NewVolumesTable

func NewVolumesTable(kubeclient kubernetes.Interface) *VolumesTable

NewVolumesTable creates a new VolumesTable saves given initialized kubernetes client

func (*VolumesTable) Columns

func (t *VolumesTable) Columns() []table.ColumnDefinition

Columns Retrieves the initialized columns

func (*VolumesTable) Generate

func (t *VolumesTable) Generate(ctx context.Context, queryContext table.QueryContext) ([]map[string]string, error)

Generate uses the api to retrieve information on all pods

func (*VolumesTable) Name

func (t *VolumesTable) Name() string

Name Returns name of table

Jump to

Keyboard shortcuts

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