Documentation ¶
Overview ¶
Package authenticate contains the commands to manage authentication in Liqo.
Index ¶
- type Cluster
- func (c *Cluster) EnsureIdentity(ctx context.Context, identity *authv1beta1.Identity) error
- func (c *Cluster) EnsureNonce(ctx context.Context) ([]byte, error)
- func (c *Cluster) EnsureSignedNonce(ctx context.Context, nonce []byte) ([]byte, error)
- func (c *Cluster) EnsureTenant(ctx context.Context, tenant *authv1beta1.Tenant) error
- func (c *Cluster) EnsureTenantNamespace(ctx context.Context, remoteClusterID liqov1beta1.ClusterID) error
- func (c *Cluster) GenerateIdentity(ctx context.Context, remoteTenantNamespace string) (*authv1beta1.Identity, error)
- func (c *Cluster) GenerateTenant(ctx context.Context, signedNonce []byte, proxyURL *string) (*authv1beta1.Tenant, error)
- func (c *Cluster) GetAPIServerProxyRemappedIP(ctx context.Context) (string, error)
- func (c *Cluster) RemapIPExternalCIDR(ctx context.Context, ip string) (string, error)
- func (c *Cluster) SetLocalClusterID(ctx context.Context) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { LocalClusterID liqov1beta1.ClusterID RemoteClusterID liqov1beta1.ClusterID TenantNamespace string // contains filtered or unexported fields }
Cluster contains the information about a cluster.
func NewCluster ¶
NewCluster returns a new Cluster struct.
func (*Cluster) EnsureIdentity ¶
EnsureIdentity apply the identity resource on the consumer cluster and wait for the status to be updated.
func (*Cluster) EnsureNonce ¶
EnsureNonce ensure the presence of a secret containing the nonce for the authentication challenge of a consumer cluster.
func (*Cluster) EnsureSignedNonce ¶
EnsureSignedNonce ensure the presence of a secret containing the signed nonce of the authentication challenge and return the signed nonce.
func (*Cluster) EnsureTenant ¶
EnsureTenant apply the tenant resource on the provider cluster and wait for the status to be updated.
func (*Cluster) EnsureTenantNamespace ¶
func (c *Cluster) EnsureTenantNamespace(ctx context.Context, remoteClusterID liqov1beta1.ClusterID) error
EnsureTenantNamespace ensure the presence of the tenant namespace on the local cluster given a remote cluster id.
func (*Cluster) GenerateIdentity ¶
func (c *Cluster) GenerateIdentity(ctx context.Context, remoteTenantNamespace string) (*authv1beta1.Identity, error)
GenerateIdentity generate the identity resource to be applied on the consumer cluster.
func (*Cluster) GenerateTenant ¶
func (c *Cluster) GenerateTenant(ctx context.Context, signedNonce []byte, proxyURL *string) (*authv1beta1.Tenant, error)
GenerateTenant generate the tenant resource to be applied on the provider cluster.
func (*Cluster) GetAPIServerProxyRemappedIP ¶
GetAPIServerProxyRemappedIP get the remapped IP of the API server proxy of the cluster.
func (*Cluster) RemapIPExternalCIDR ¶
RemapIPExternalCIDR remaps the given IP address to the external CIDR of the remote cluster.