trustzone

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoClustersInTrustZone = errors.New("no clusters in trust zone")

Functions

func GetClusterFromTrustZoneByName added in v0.25.0

func GetClusterFromTrustZoneByName(trustZone *trust_zone_proto.TrustZone, clusterName string, ds datasource.DataSource) (*clusterpb.Cluster, error)

GetClusterFromTrustZoneByName looks up a named cluster within a trust zone.

func GetClustersByTrustZone added in v0.25.0

func GetClustersByTrustZone(trustZone *trust_zone_proto.TrustZone, ds datasource.DataSource) ([]*clusterpb.Cluster, error)

GetClustersByTrustZone returns all clusters for a trust zone. Returns ErrNoClustersInTrustZone if the trust zone has no clusters.

func ResolveCluster added in v0.25.0

func ResolveCluster(trustZone *trust_zone_proto.TrustZone, clusterName string, ds datasource.DataSource) (*clusterpb.Cluster, error)

ResolveCluster resolves a cluster for a trust zone given an optional cluster name. If clusterName is non-empty, it is looked up by name. If clusterName is empty and the trust zone has exactly one cluster, that cluster is returned. If clusterName is empty and the trust zone has multiple clusters, an error is returned instructing the caller to use --cluster to specify one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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