overview

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterClient

type ClusterClient interface {
	Resource(kind schema.GroupKind) (schema.GroupVersionResource, error)
	DynamicClient() (dynamic.Interface, error)
}

type ConfigurationEditor

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

func NewConfigurationEditor

func NewConfigurationEditor(logger log.Logger, objectStore store.Store) *ConfigurationEditor

func (*ConfigurationEditor) ActionName

func (e *ConfigurationEditor) ActionName() string

func (*ConfigurationEditor) Handle

func (e *ConfigurationEditor) Handle(ctx context.Context, payload action.Payload) error

type GeneratorOptions

type GeneratorOptions struct {
	LabelSet *kLabels.Set
}

GeneratorOptions are additional options to pass a generator

type Options

type Options struct {
	Namespace  string
	DashConfig config.Dash
}

type Overview

type Overview struct {
	*octant.ObjectPath
	// contains filtered or unexported fields
}

Overview is an API for generating a cluster overview.

func New

func New(ctx context.Context, options Options) (*Overview, error)

New creates an instance of Overview.

func (*Overview) ActionPaths

func (co *Overview) ActionPaths() map[string]action.DispatcherFunc

func (*Overview) Content

func (co *Overview) Content(ctx context.Context, contentPath, prefix, namespace string, opts module.ContentOptions) (component.ContentResponse, error)

Content serves content for overview.

func (*Overview) ContentPath

func (co *Overview) ContentPath() string

ContentPath returns the content path for overview.

func (*Overview) Generators

func (co *Overview) Generators() []octant.Generator

Generators allow modules to send events to the frontend.

func (*Overview) Handlers

func (co *Overview) Handlers(ctx context.Context) map[string]http.Handler

Handlers are extra handlers for overview

func (*Overview) Name

func (co *Overview) Name() string

Name returns the name for this module.

func (*Overview) Navigation

func (co *Overview) Navigation(ctx context.Context, namespace, root string) ([]navigation.Navigation, error)

Navigation returns navigation entries for overview.

func (*Overview) SetContext

func (co *Overview) SetContext(ctx context.Context, contextName string) error

func (*Overview) SetNamespace

func (co *Overview) SetNamespace(namespace string) error

SetNamespace sets the current namespace.

func (*Overview) Start

func (co *Overview) Start() error

Start starts overview.

func (*Overview) Stop

func (co *Overview) Stop()

Stop stops overview.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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