Documentation ¶
Index ¶
- func CreateOrUpdateRobot(ctx context.Context, client dynamic.ResourceInterface, ...) error
- func GetRobotName(ctx context.Context, f util.Factory, client dynamic.ResourceInterface, ...) (string, error)
- func PublishCredentialsToCloud(client *http.Client, auth *robotauth.RobotAuth, retries uint64) error
- func WaitForDNS(domain string, retries uint64) error
- func WaitForService(client *http.Client, url string, retries uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateRobot ¶
func CreateOrUpdateRobot(ctx context.Context, client dynamic.ResourceInterface, robotName, robotType, project string, labels map[string]string, annotations map[string]string) error
CreateOrUpdateRobot adds a new robot-cr or updates an existing one.
func GetRobotName ¶
func GetRobotName(ctx context.Context, f util.Factory, client dynamic.ResourceInterface, robotName string) (string, error)
GetRobotName returns a valid robot name or an error. If the robotName parameter is non-empty, it checks if it is valid. If it is an empty string, the user is prompted to select a robot.
func PublishCredentialsToCloud ¶
func PublishCredentialsToCloud(client *http.Client, auth *robotauth.RobotAuth, retries uint64) error
PublishCredentialsToCloud registers a public-key in the cloud under the ID given as part of the RobotAuth struct.
func WaitForDNS ¶
WaitForDNS manually resolves the domain name with retries to give a better error in the case of failure. This is useful to catch errors during first interaction with the cluster and cloud-project,
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.