compat

package
v0.0.0-...-25f5b1c Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Get       = "Get"
	List      = "List"
	Create    = "Create"
	Update    = "Update"
	Delete    = "Delete"
	Cluster   = "cluster"
	Component = "component"
	Function  = "function"
	Kind      = "kind"
	Method    = "method"
)

Labels.

Variables

View Source
var Settings = &settings.Settings

Functions

This section is empty.

Types

type Client

type Client interface {
	k8sclient.Client
	dapi.DiscoveryInterface
	RestConfig() *rest.Config
	MajorVersion() int
	MinorVersion() int
}

A smart client. Provides seamless API version compatibility.

func NewClient

func NewClient(restCfg *rest.Config, rClient *k8sclient.Client) (Client, error)

Create a new client.

type Reporter

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

Metric reporter.

var Metrics *Reporter

Global reporter.

func (*Reporter) Create

func (m *Reporter) Create(client Client, object api.Object, elapsed float64)

Report `create` API call.

func (*Reporter) Delete

func (m *Reporter) Delete(client Client, object api.Object, elapsed float64)

Report `delete` API call.

func (*Reporter) Get

func (m *Reporter) Get(client Client, object api.Object, elapsed float64)

Report `get` API call.

func (*Reporter) List

func (m *Reporter) List(client Client, object api.Object, elapsed float64)

Report `list` API call.

func (*Reporter) Update

func (m *Reporter) Update(client Client, object api.Object, elapsed float64)

Report `update` API call.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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