rancher

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: UPL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RancherNamespace = "cattle-system"

RancherNamespace contains constant for Rancher namespace

View Source
const TLSRancherIngressSecret = "tls-rancher-ingress"

TLSRancherIngressSecret contains constant for tls-rancher-ingress

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	ID                 string
	Name               string
	KubeConfigContents string
	PrometheusURL      string
	ServerAddress      string
	Type               string
}

Cluster contains Rancher Managed cluster structure

func GetClusters

func GetClusters(r rancher, rancherConfig Config) ([]Cluster, error)

GetClusters returns Rancher clusters

type Config

type Config struct {
	URL                      string
	Username                 string
	Password                 string
	Host                     string
	CertificateAuthorityData []byte
}

Config contains Rancher Server endpoint URL and credentials structure

type Rancher

type Rancher struct{}

The Rancher default implementation

func (Rancher) APICall

func (c Rancher) APICall(rancherConfig Config, apiPath string, httpMethod string, parameterMap map[string]string, payload string) (*gabs.Container, error)

APICall for Generic Rancher API call returning a json object.

Jump to

Keyboard shortcuts

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