Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TokenGroupVersionResource = schema.GroupVersionResource{
Group: "management.cattle.io",
Version: "v3",
Resource: "tokens",
}
Functions ¶
func PatchToken ¶
func PatchToken(client *rancher.Client, clusterID, tokenName, patchOp, patchPath, patchData string) (*v3.Token, *unstructured.Unstructured, error)
PatchToken is a helper function that uses the dynamic client to patch a token by its name. Different token operations are supported: add, replace, remove.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.