Versions in this module Expand all Collapse all v1 v1.0.0 Jul 31, 2024retracted Changes in this version + func AddClusterMember(ctx context.Context, c *Client, args types.ClusterMember) (*internalTypes.TokenResponse, error) + func AddTrustStoreEntry(ctx context.Context, c *Client, args types.ClusterMemberLocal) error + func DeleteTrustStoreEntry(ctx context.Context, c *Client, name string) error + func GetSQL(ctx context.Context, c *Client, schema bool) (*types.SQLDump, error) + func IsForwardedRequest(r *http.Request) bool + func PostSQL(ctx context.Context, c *Client, query types.SQLQuery) (*types.SQLBatch, error) + func ResetClusterMember(ctx context.Context, c *Client, name string, force bool) error + func RunNewMemberHook(ctx context.Context, c *Client, config internalTypes.HookNewMemberOptions) error + func RunOnDaemonConfigUpdateHook(ctx context.Context, c *Client, config *types.DaemonConfig) error + func RunPostRemoveHook(ctx context.Context, c *Client, config internalTypes.HookRemoveMemberOptions) error + func RunPreRemoveHook(ctx context.Context, c *Client, config internalTypes.HookRemoveMemberOptions) error + func TLSClientConfig(clientCert *shared.CertInfo, remoteCert *x509.Certificate) (*tls.Config, error) + type Client struct + func New(url api.URL, clientCert *shared.CertInfo, remoteCert *x509.Certificate, ...) (*Client, error) + func (c *Client) CheckReady(ctx context.Context) error + func (c *Client) ControlDaemon(ctx context.Context, args types.Control) error + func (c *Client) DeleteClusterMember(ctx context.Context, name string, force bool) error + func (c *Client) DeleteTokenRecord(ctx context.Context, name string) error + func (c *Client) GetClusterMembers(ctx context.Context) ([]types.ClusterMember, error) + func (c *Client) GetTokenRecords(ctx context.Context) ([]types.TokenRecord, error) + func (c *Client) MakeRequest(r *http.Request) (*api.Response, error) + func (c *Client) QueryStruct(ctx context.Context, method string, endpointType types.EndpointPrefix, ...) error + func (c *Client) RequestToken(ctx context.Context, name string, expireAfter time.Duration) (string, error) + func (c *Client) SetClusterNotification() + func (c *Client) ShutdownDaemon(ctx context.Context) error + func (c *Client) URL() api.URL + func (c *Client) UpdateCertificate(ctx context.Context, name types.CertificateName, args types.KeyPair) error + func (c *Client) UpdateServers(ctx context.Context, config map[string]apiTypes.ServerConfig) error + func (c *Client) UseTarget(name string) *Client Other modules containing this package github.com/canonical/microcluster/v2