rancherClient

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterID

func GetClusterID(URL string, cluster string, token string) string

func GetRancherConfig

func GetRancherConfig(url string, cluster string, token string) (*api.Config, error)

func GetToken

func GetToken(token string) string

func RespError

func RespError(err error)

Types

type Clusters

type Clusters struct {
	Data []Data `json:"data"`
}

type Config

type Config struct {
	Config string `json:"config"`
}

type Data

type Data struct {
	Id string `json:"id"`
}

Jump to

Keyboard shortcuts

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