storage

package
v0.0.0-...-562eb29 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLocalCluster

func AddLocalCluster(name, endpoint, token string, local bool) error

func DelLocalCluster

func DelLocalCluster(name string) error

func GetCluster

func GetCluster() (string, error)

func GetToken

func GetToken() (string, error)

func SetCluster

func SetCluster(cluster string) error

func SetToken

func SetToken(token string) error

Types

type Cluster

type Cluster struct {
	Name     string `json:"name"`
	Endpoint string `json:"endpoint"`
	Token    string `json:"token"`
}

func GetLocalCluster

func GetLocalCluster(name string) (*Cluster, error)

func ListLocalCluster

func ListLocalCluster() ([]*Cluster, error)

Jump to

Keyboard shortcuts

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