kubernetes

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ClientInterface
	// contains filtered or unexported fields
}

Client is the client struct for Kiali Monitoring API over Kubernetes API to get MonitoringDashboards

func NewClient

func NewClient() (*Client, error)

NewClient creates a new client able to fetch Kiali Monitoring API.

func (*Client) GetDashboard

func (in *Client) GetDashboard(namespace, name string) (*v1alpha1.MonitoringDashboard, error)

GetDashboard returns a MonitoringDashboard for the given name

func (*Client) GetDashboards

func (in *Client) GetDashboards(namespace string) ([]v1alpha1.MonitoringDashboard, error)

GetDashboards returns all MonitoringDashboards from the given namespace

type ClientInterface

type ClientInterface interface {
	GetDashboard(namespace string, name string) (*v1alpha1.MonitoringDashboard, error)
	GetDashboards(namespace string) ([]v1alpha1.MonitoringDashboard, error)
}

ClientInterface for mocks (only mocked function are necessary here)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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