settings

package
v0.0.0-...-98e341c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func ShellVersion(client *rancher.Client, clusterID, resourceName string) (string, error)

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.

Jump to

Keyboard shortcuts

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