Documentation ¶
Index ¶
- Constants
- func ResetUGlobalSettings(steveclient *v1.Client, globalSetting *v1.SteveAPIObject) (*v1.SteveAPIObject, error)
- func ShellVersion(client *rancher.Client, clusterID, resourceName string) (string, error)
- func UpdateGlobalSettings(steveclient *v1.Client, globalSetting *v1.SteveAPIObject, value string) (*v1.SteveAPIObject, error)
Constants ¶
View Source
const ( ManagementSetting = "management.cattle.io.setting" KubeConfigToken = "kubeconfig-default-token-ttl-minutes" )
Variables ¶
This section is empty.
Functions ¶
func ResetUGlobalSettings ¶
func ResetUGlobalSettings(steveclient *v1.Client, globalSetting *v1.SteveAPIObject) (*v1.SteveAPIObject, error)
ResetUGlobalSettings is a helper function that uses the steve client to reset a specific Global Setting to its default value.
func ShellVersion ¶
ShellVersion is a helper that gets the shell setting json based on the ID and return the shell image value.
func UpdateGlobalSettings ¶
func UpdateGlobalSettings(steveclient *v1.Client, globalSetting *v1.SteveAPIObject, value string) (*v1.SteveAPIObject, error)
UpdateGlobalSettings is a helper function that uses the steve client to update a Global setting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.