acl

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorACL

type OperatorACL struct {
	// OperatorACL is the wrapped open-source ACL operator
	*oss.OperatorACL
	// contains filtered or unexported fields
}

OperatorACL extends ACL operator from open-source

func OperatorWithACL

func OperatorWithACL(operatorACL *oss.OperatorACL, operator ops.Operator) *OperatorACL

OperatorWithACL returns a new enterprise ACL operator

func (*OperatorACL) AcceptRemoteCluster

AcceptRemoteCluster defines the handshake between a remote cluster and this Ops Center

func (*OperatorACL) CheckForUpdate

func (o *OperatorACL) CheckForUpdate(key oss.SiteKey) (*loc.Locator, error)

CheckForUpdate checks with remote OpsCenter if there is a newer version of the installed application

func (*OperatorACL) CheckSiteLicense

func (o *OperatorACL) CheckSiteLicense(ctx context.Context, key oss.SiteKey) error

CheckSiteLicense makes sure the license installed on cluster is correct

func (*OperatorACL) DeleteOIDCConnector

func (o *OperatorACL) DeleteOIDCConnector(ctx context.Context, key oss.SiteKey, name string) error

DeleteOIDCConnector deletes an OIDC connector by name

func (*OperatorACL) DeleteRole

func (o *OperatorACL) DeleteRole(ctx context.Context, key oss.SiteKey, name string) error

DeleteRole deletes a role by name

func (*OperatorACL) DeleteSAMLConnector

func (o *OperatorACL) DeleteSAMLConnector(ctx context.Context, key oss.SiteKey, name string) error

DeleteSAMLConnector deletes a SAML connector by name

func (*OperatorACL) DeleteTrustedCluster

func (o *OperatorACL) DeleteTrustedCluster(ctx context.Context, req ops.DeleteTrustedClusterRequest) error

DeleteTrustedCluster deletes a trusted cluster by name

func (*OperatorACL) DisablePeriodicUpdates

func (o *OperatorACL) DisablePeriodicUpdates(ctx context.Context, key oss.SiteKey) error

DisablePeriodicUpdates turns periodic updates for the cluster off and stops the update fetch loop if it's running

func (*OperatorACL) DownloadUpdate

func (o *OperatorACL) DownloadUpdate(ctx context.Context, req ops.DownloadUpdateRequest) error

DownloadUpdate downloads the provided application version from remote Ops Center

func (*OperatorACL) EnablePeriodicUpdates

func (o *OperatorACL) EnablePeriodicUpdates(ctx context.Context, req ops.EnablePeriodicUpdatesRequest) error

EnablePeriodicUpdates turns periodic updates for the cluster on or updates the interval

func (*OperatorACL) GetClusterEndpoints

func (o *OperatorACL) GetClusterEndpoints(key oss.SiteKey) (storage.Endpoints, error)

GetClusterEndpoints returns the cluster management endpoints such as control panel advertise address and agents advertise address

func (*OperatorACL) GetLicenseCA

func (o *OperatorACL) GetLicenseCA() ([]byte, error)

GetLicenseCA returns CA certificate Ops Center uses to sign licenses

func (*OperatorACL) GetOIDCConnector

func (o *OperatorACL) GetOIDCConnector(key oss.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 (*OperatorACL) GetOIDCConnectors

func (o *OperatorACL) GetOIDCConnectors(key oss.SiteKey, withSecrets bool) ([]teleservices.OIDCConnector, error)

GetOIDCConnectors returns all OIDC connectors

Returned connectors exclude client secret unless withSecrets is true.

func (*OperatorACL) GetRole

func (o *OperatorACL) GetRole(key oss.SiteKey, name string) (teleservices.Role, error)

GetRole returns a role by name

func (*OperatorACL) GetRoles

func (o *OperatorACL) GetRoles(key oss.SiteKey) ([]teleservices.Role, error)

GetRoles returns all roles

func (*OperatorACL) GetSAMLConnector

func (o *OperatorACL) GetSAMLConnector(key oss.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 (*OperatorACL) GetSAMLConnectors

func (o *OperatorACL) GetSAMLConnectors(key oss.SiteKey, withSecrets bool) ([]teleservices.SAMLConnector, error)

GetSAMLConnectors returns all SAML connectors

Returned connectors exclude private signing keys unless withSecrets is true.

func (*OperatorACL) GetTrustedCluster

func (o *OperatorACL) GetTrustedCluster(key oss.SiteKey, name string) (storage.TrustedCluster, error)

GetTrustedCluster returns trusted cluster by name

func (*OperatorACL) GetTrustedClusters

func (o *OperatorACL) GetTrustedClusters(key oss.SiteKey) ([]storage.TrustedCluster, error)

GetTrustedClusters returns a list of configured trusted clusters

func (*OperatorACL) NewLicense

func (o *OperatorACL) NewLicense(ctx context.Context, req ops.NewLicenseRequest) (string, error)

NewLicense generates a new license signed with this Ops Center CA

func (*OperatorACL) PeriodicUpdatesStatus

func (o *OperatorACL) PeriodicUpdatesStatus(key oss.SiteKey) (*ops.PeriodicUpdatesStatusResponse, error)

PeriodicUpdatesStatus returns the status of periodic updates for the cluster

func (*OperatorACL) RegisterAgent

RegisterAgent registers an install agent

func (*OperatorACL) RemoveRemoteCluster

func (o *OperatorACL) RemoveRemoteCluster(req ops.RemoveRemoteClusterRequest) error

RemoveRemoteCluster removes the cluster entry specified in the request

func (*OperatorACL) RequestClusterCopy

func (o *OperatorACL) RequestClusterCopy(req ops.ClusterCopyRequest) error

RequestClusterCopy replicates the cluster specified in the provided request and its data from the remote Ops Center

func (*OperatorACL) StartPeriodicUpdates

func (o *OperatorACL) StartPeriodicUpdates(key oss.SiteKey) error

StartPeriodicUpdates starts periodic updates check

func (*OperatorACL) StopPeriodicUpdates

func (o *OperatorACL) StopPeriodicUpdates(key oss.SiteKey) error

StopPeriodicUpdates stops periodic updates check without disabling it

func (*OperatorACL) UpdateClusterEndpoints

func (o *OperatorACL) UpdateClusterEndpoints(ctx context.Context, key oss.SiteKey, endpoints storage.Endpoints) error

UpdateClusterEndpoints updates the cluster management endpoints

func (*OperatorACL) UpdateLicense

func (o *OperatorACL) UpdateLicense(ctx context.Context, req ops.UpdateLicenseRequest) error

UpdateLicense updates license installed on cluster and runs a respective app hook

func (*OperatorACL) UpsertOIDCConnector

func (o *OperatorACL) UpsertOIDCConnector(ctx context.Context, key oss.SiteKey, connector teleservices.OIDCConnector) error

UpsertOIDCConnector creates or updates an OIDC connector

func (*OperatorACL) UpsertRole

func (o *OperatorACL) UpsertRole(ctx context.Context, key oss.SiteKey, role teleservices.Role) error

UpsertRole creates a new role

func (*OperatorACL) UpsertSAMLConnector

func (o *OperatorACL) UpsertSAMLConnector(ctx context.Context, key oss.SiteKey, connector teleservices.SAMLConnector) error

UpsertSAMLConnector creates or updates a SAML connector

func (*OperatorACL) UpsertTrustedCluster

func (o *OperatorACL) UpsertTrustedCluster(ctx context.Context, key oss.SiteKey, cluster storage.TrustedCluster) error

UpsertTrustedCluster creates or updates a trusted cluster

Jump to

Keyboard shortcuts

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