Documentation
¶
Overview ¶
Package k8s contains kubernetes related functionality for the csp adapter (such as cache storage and results output)
Index ¶
- type Client
- type Clients
- func (c *Clients) GetConsumptionTokenSecret() (*corev1.Secret, error)
- func (c *Clients) GetRancherHostname() (string, error)
- func (c *Clients) GetRancherVersion() (string, error)
- func (c *Clients) UpdateCSPConfigOutput(marshalledData []byte) error
- func (c *Clients) UpdateConsumptionTokenSecret(data map[string]string) error
- func (c *Clients) UpdateUserNotification(isInCompliance bool, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // GetConsumptionTokenSecret retrieves the secret containing consumption token info from k8s GetConsumptionTokenSecret() (*corev1.Secret, error) // UpdateConsumptionTokenSecret stores data into the secret containing consumption token info UpdateConsumptionTokenSecret(data map[string]string) error // UpdateCSPConfigOutput stores config to k8s as a configmap with a static/constant name UpdateCSPConfigOutput(marshalledData []byte) error // UpdateUserNotification creates/updates a RancherUserNotification based on isInCompliance and the provided message UpdateUserNotification(isInCompliance bool, message string) error // GetRancherHostname finds the hostname for the core rancher install from the settings. GetRancherHostname() (string, error) // GetRancherVersion finds the version of rancher from the settings GetRancherVersion() (string, error) }
type Clients ¶
type Clients struct { ConfigMaps v1.ConfigMapClient Secrets v1.SecretController Notifications mgmtv3.RancherUserNotificationClient Settings mgmtv3.SettingClient }
func (*Clients) GetConsumptionTokenSecret ¶
func (*Clients) GetRancherHostname ¶
func (*Clients) GetRancherVersion ¶
func (*Clients) UpdateCSPConfigOutput ¶
func (*Clients) UpdateConsumptionTokenSecret ¶
Click to show internal directories.
Click to hide internal directories.