Documentation
¶
Index ¶
- func GetIPsByIfName(ifName string) ([]string, []string)
- func GetRancherCACert(ctx context.Context, cli client.Client) string
- func GetSettingsValue(ctx context.Context, cli client.Client, name string) (string, error)
- func IsHTTP(uri string) bool
- func IsObjectOwned(obj *metav1.ObjectMeta, uid types.UID) bool
- func JSONObjectToYamlBytes(object map[string]runtime.RawExtension) ([]byte, error)
- func MarshalCloudConfig(cloudConfig map[string]runtime.RawExtension) ([]byte, error)
- func PlanChecksum(input []byte) string
- func RemoveInvalidConditions(conditions []metav1.Condition) []metav1.Condition
- type CommandRunner
- type ExecRunner
- type NetController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIPsByIfName ¶ added in v1.7.2
GetIPByIfName returns two slices containing the IPv4 and the IPv6 addresses of the network interface name (ifName) passed as argument. This function cannot fail: if no address can be retrieved two empty slices are returned.
func GetRancherCACert ¶ added in v1.2.3
GetRancherCACert returns the cacerts included within Rancher settings. If not configured returns an empty string
func GetSettingsValue ¶ added in v1.2.3
GetSettingsValue find the given name in Rancher settings and returns its value if found
func IsObjectOwned ¶ added in v1.2.3
func IsObjectOwned(obj *metav1.ObjectMeta, uid types.UID) bool
func JSONObjectToYamlBytes ¶ added in v1.7.0
func JSONObjectToYamlBytes(object map[string]runtime.RawExtension) ([]byte, error)
JSONObjectToYamlBytes converts any-schema JSON object to YAML bytes
func MarshalCloudConfig ¶ added in v1.2.0
func MarshalCloudConfig(cloudConfig map[string]runtime.RawExtension) ([]byte, error)
func PlanChecksum ¶ added in v1.3.1
Types ¶
type CommandRunner ¶ added in v1.7.0
CommandRunner is a simple interface to allow mocking and ease testing.
type ExecRunner ¶ added in v1.7.0
type ExecRunner struct{}
type NetController ¶ added in v1.7.2
func NewNetController ¶ added in v1.7.2
func NewNetController() NetController
Click to show internal directories.
Click to hide internal directories.