Versions in this module Expand all Collapse all v5 v5.0.0 Jul 16, 2024 Changes in this version + const HeartbeatTimeout + func AddTrustStoreEntry(ctx context.Context, c *Client, args types.ClusterMemberLocal) error + func DeleteTrustStoreEntry(ctx context.Context, c *Client, name string) error + func IsForwardedRequest(r *http.Request) bool + 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) AddClusterMember(ctx context.Context, args types.ClusterMember) (*types.TokenResponse, 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) GetSQL(ctx context.Context, schema bool) (*types.SQLDump, error) + func (c *Client) GetTokenRecords(ctx context.Context) ([]types.TokenRecord, error) + func (c *Client) Heartbeat(ctx context.Context, hbInfo types.HeartbeatInfo) error + func (c *Client) MakeRequest(r *http.Request) (*api.Response, error) + func (c *Client) PostSQL(ctx context.Context, query types.SQLQuery) (*types.SQLBatch, error) + func (c *Client) QueryStruct(ctx context.Context, method string, endpointType EndpointType, ...) error + func (c *Client) RequestToken(ctx context.Context, name string) (string, error) + func (c *Client) ResetClusterMember(ctx context.Context, name string, force bool) error + func (c *Client) SetClusterNotification() + func (c *Client) ShutdownDaemon(ctx context.Context) error + func (c *Client) URL() api.URL + func (c *Client) UpdateClusterCertificate(ctx context.Context, args apiTypes.ClusterCertificatePut) error + func (c *Client) UseTarget(name string) *Client + type EndpointType string + const ControlEndpoint + const ExtendedEndpoint + const InternalEndpoint + const PublicEndpoint Other modules containing this package github.com/masnax/microclustertest github.com/masnax/microclustertest/v2 github.com/masnax/microclustertest/v3