caasmodeloperator

package
v0.0.0-...-0a271de Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a caas model operator facade client

func NewClient

func NewClient(caller base.APICaller, options ...Option) *Client

NewClient returns a client used to access the CAAS Operator Provisioner API.

func (*Client) ModelOperatorProvisioningInfo

func (c *Client) ModelOperatorProvisioningInfo(ctx context.Context) (ModelOperatorProvisioningInfo, error)

ModelOperatorProvisioningInfo returns the information needed for a given model when provisioning into a caas env

func (*Client) SetPassword

func (c *Client) SetPassword(ctx context.Context, password string) error

SetPasswords sets the supplied passwords on their corresponding models

func (*Client) WatchModelOperatorProvisioningInfo

func (c *Client) WatchModelOperatorProvisioningInfo(ctx context.Context) (watcher.NotifyWatcher, error)

WatchModelOperatorProvisioningInfo provides a watcher for changes that affect the information returned by ModelOperatorProvisioningInfo.

type ModelOperatorProvisioningInfo

type ModelOperatorProvisioningInfo struct {
	APIAddresses []string
	ImageDetails resource.DockerImageDetails
	Version      version.Number
}

ModelOperatorProvisioningInfo represents return api information for provisioning a caas model operator

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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