Documentation ¶ Index ¶ func GetClusterID(URL string, cluster string, token string) string func GetRancherConfig(url string, cluster string, token string) (*api.Config, error) func GetToken(token string) string func RespError(err error) type Clusters type Config type Data 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"` } Source Files ¶ View all Source files getRancherConfig.go types.go Click to show internal directories. Click to hide internal directories.