Documentation ¶
Index ¶
- type Client
- func (c *Client) AcceptRemoteCluster(req ops.AcceptRemoteClusterRequest) (*ops.AcceptRemoteClusterResponse, error)
- func (c *Client) CheckForUpdate(key ossops.SiteKey) (*loc.Locator, error)
- func (c *Client) CheckSiteLicense(ctx context.Context, key ossops.SiteKey) error
- func (c *Client) DeleteOIDCConnector(ctx context.Context, key ossops.SiteKey, name string) error
- func (c *Client) DeleteRole(ctx context.Context, key ossops.SiteKey, name string) error
- func (c *Client) DeleteSAMLConnector(ctx context.Context, key ossops.SiteKey, name string) error
- func (c *Client) DeleteTrustedCluster(ctx context.Context, req ops.DeleteTrustedClusterRequest) error
- func (c *Client) DisablePeriodicUpdates(ctx context.Context, key ossops.SiteKey) error
- func (c *Client) DownloadUpdate(ctx context.Context, req ops.DownloadUpdateRequest) error
- func (c *Client) EnablePeriodicUpdates(ctx context.Context, req ops.EnablePeriodicUpdatesRequest) error
- func (c *Client) GetClusterEndpoints(key ossops.SiteKey) (storage.Endpoints, error)
- func (c *Client) GetLicenseCA() ([]byte, error)
- func (c *Client) GetOIDCConnector(key ossops.SiteKey, name string, withSecrets bool) (teleservices.OIDCConnector, error)
- func (c *Client) GetOIDCConnectors(key ossops.SiteKey, withSecrets bool) ([]teleservices.OIDCConnector, error)
- func (c *Client) GetRole(key ossops.SiteKey, name string) (teleservices.Role, error)
- func (c *Client) GetRoles(key ossops.SiteKey) ([]teleservices.Role, error)
- func (c *Client) GetSAMLConnector(key ossops.SiteKey, name string, withSecrets bool) (teleservices.SAMLConnector, error)
- func (c *Client) GetSAMLConnectors(key ossops.SiteKey, withSecrets bool) ([]teleservices.SAMLConnector, error)
- func (c *Client) GetTrustedCluster(key ossops.SiteKey, name string) (storage.TrustedCluster, error)
- func (c *Client) GetTrustedClusters(key ossops.SiteKey) ([]storage.TrustedCluster, error)
- func (c *Client) NewLicense(ctx context.Context, req ops.NewLicenseRequest) (string, error)
- func (c *Client) PeriodicUpdatesStatus(key ossops.SiteKey) (*ops.PeriodicUpdatesStatusResponse, error)
- func (c *Client) RegisterAgent(req ops.RegisterAgentRequest) (*ops.RegisterAgentResponse, error)
- func (c *Client) RemoveRemoteCluster(req ops.RemoveRemoteClusterRequest) error
- func (c *Client) RequestClusterCopy(req ops.ClusterCopyRequest) error
- func (c *Client) StartPeriodicUpdates(key ossops.SiteKey) error
- func (c *Client) StopPeriodicUpdates(key ossops.SiteKey) error
- func (c *Client) UpdateClusterEndpoints(ctx context.Context, key ossops.SiteKey, endpoints storage.Endpoints) error
- func (c *Client) UpdateLicense(ctx context.Context, req ops.UpdateLicenseRequest) error
- func (c *Client) UpsertOIDCConnector(ctx context.Context, key ossops.SiteKey, connector teleservices.OIDCConnector) error
- func (c *Client) UpsertRole(ctx context.Context, key ossops.SiteKey, role teleservices.Role) error
- func (c *Client) UpsertSAMLConnector(ctx context.Context, key ossops.SiteKey, connector teleservices.SAMLConnector) error
- func (c *Client) UpsertTrustedCluster(ctx context.Context, key ossops.SiteKey, cluster storage.TrustedCluster) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client extends the open-source operator HTTP client
func NewAuthenticatedClient ¶
func NewAuthenticatedClient(addr, username, password string, params ...opsclient.ClientParam) (*Client, error)
NewAuthenticatedClient returns enterprise ops client using provided username and password for authentication
func NewBearerClient ¶
func NewBearerClient(addr, password string, params ...opsclient.ClientParam) (*Client, error)
NewBearerClient returns enterprise ops client using provided bearer token for authentication
func (*Client) AcceptRemoteCluster ¶
func (c *Client) AcceptRemoteCluster(req ops.AcceptRemoteClusterRequest) (*ops.AcceptRemoteClusterResponse, error)
AcceptRemoteCluster defines the handshake between a remote cluster and this Ops Center
func (*Client) CheckForUpdate ¶
CheckForUpdate checks with remote OpsCenter if there is a newer version of the installed application
func (*Client) CheckSiteLicense ¶
CheckSiteLicense checks the license installed on site
func (*Client) DeleteOIDCConnector ¶
DeleteOIDCConnector deletes an OIDC connector by name
func (*Client) DeleteRole ¶
DeleteRole deletes a role by name
func (*Client) DeleteSAMLConnector ¶
DeleteSAMLConnector deletes a SAML connector by name
func (*Client) DeleteTrustedCluster ¶
func (c *Client) DeleteTrustedCluster(ctx context.Context, req ops.DeleteTrustedClusterRequest) error
DeleteTrustedCluster deletes a trusted cluster by name
func (*Client) DisablePeriodicUpdates ¶
DisablePeriodicUpdates turns periodic updates for the cluster off and stops the update fetch loop if it's running
func (*Client) DownloadUpdate ¶
DownloadUpdate downloads the provided application version from remote Ops Center
func (*Client) EnablePeriodicUpdates ¶
func (c *Client) EnablePeriodicUpdates(ctx context.Context, req ops.EnablePeriodicUpdatesRequest) error
EnablePeriodicUpdates turns periodic updates for the cluster on or updates the interval
func (*Client) GetClusterEndpoints ¶
GetClusterEndpoints returns the cluster management endpoints such as control panel advertise address and agents advertise address
func (*Client) GetLicenseCA ¶
GetLicenseCA returns CA certificate Ops Center uses to sign licenses
func (*Client) GetOIDCConnector ¶
func (c *Client) GetOIDCConnector(key ossops.SiteKey, name string, withSecrets bool) (teleservices.OIDCConnector, error)
GetOIDCConnector returns an OIDC connector by name
Returned connector exclude client secret unless withSecrets is true.
func (*Client) GetOIDCConnectors ¶
func (c *Client) GetOIDCConnectors(key ossops.SiteKey, withSecrets bool) ([]teleservices.OIDCConnector, error)
GetOIDCConnectors returns all OIDC connectors
Returned connectors exclude client secret unless withSecrets is true.
func (*Client) GetSAMLConnector ¶
func (c *Client) GetSAMLConnector(key ossops.SiteKey, name string, withSecrets bool) (teleservices.SAMLConnector, error)
GetSAMLConnector returns a SAML connector by name
Returned connector excludes private signing key unless withSecrets is true.
func (*Client) GetSAMLConnectors ¶
func (c *Client) GetSAMLConnectors(key ossops.SiteKey, withSecrets bool) ([]teleservices.SAMLConnector, error)
GetSAMLConnectors returns all SAML connectors
Returned connectors exclude private signing keys unless withSecrets is true.
func (*Client) GetTrustedCluster ¶
GetTrustedCluster returns trusted cluster with specified name
func (*Client) GetTrustedClusters ¶
GetTrustedClusters returns a list of configured trusted clusters
func (*Client) NewLicense ¶
NewLicense generates a new license signed with this Ops Center CA
func (*Client) PeriodicUpdatesStatus ¶
func (c *Client) PeriodicUpdatesStatus(key ossops.SiteKey) (*ops.PeriodicUpdatesStatusResponse, error)
PeriodicUpdatesStatus returns the status of periodic updates for the cluster
func (*Client) RegisterAgent ¶
func (c *Client) RegisterAgent(req ops.RegisterAgentRequest) (*ops.RegisterAgentResponse, error)
RegisterAgent registers an install agent
func (*Client) RemoveRemoteCluster ¶
func (c *Client) RemoveRemoteCluster(req ops.RemoveRemoteClusterRequest) error
RemoveRemoteCluster removes the cluster entry specified in the request
func (*Client) RequestClusterCopy ¶
func (c *Client) RequestClusterCopy(req ops.ClusterCopyRequest) error
RequestClusterCopy replicates the cluster specified in the provided request and its data from the remote Ops Center
func (*Client) StartPeriodicUpdates ¶
StartPeriodicUpdates starts periodic updates check
func (*Client) StopPeriodicUpdates ¶
StopPeriodicUpdates stops periodic updates check without disabling it
func (*Client) UpdateClusterEndpoints ¶
func (c *Client) UpdateClusterEndpoints(ctx context.Context, key ossops.SiteKey, endpoints storage.Endpoints) error
UpdateClusterEndpoints updates the cluster management endpoints
func (*Client) UpdateLicense ¶
UpdateLicense updates license installed on site and runs a respective app hook
func (*Client) UpsertOIDCConnector ¶
func (c *Client) UpsertOIDCConnector(ctx context.Context, key ossops.SiteKey, connector teleservices.OIDCConnector) error
UpsertOIDCConnector creates or updates an OIDC connector
func (*Client) UpsertRole ¶
UpsertRole creates a new role or updates an existing one
func (*Client) UpsertSAMLConnector ¶
func (c *Client) UpsertSAMLConnector(ctx context.Context, key ossops.SiteKey, connector teleservices.SAMLConnector) error
UpsertSAMLConnector creates or updates a SAML connector
func (*Client) UpsertTrustedCluster ¶
func (c *Client) UpsertTrustedCluster(ctx context.Context, key ossops.SiteKey, cluster storage.TrustedCluster) error
UpsertTrustedCluster creates or updates a trusted cluster