Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSet ¶
type ClientSet interface {
OrganizationV1Alpha1() organizationv1alpha1.OrganizationClient
TrustZoneV1Alpha1() trustzonev1alpha1.TrustZoneClient
TrustZoneServerV1Alpha1() trustzoneserverv1alpha1.TrustZoneServerClient
ClusterV1Alpha1() clusterv1alpha1.ClusterClient
AgentV1Alpha1() agentv1alpha1.AgentClient
AttestationPolicyV1Alpha1() attestationpolicyv1alpha1.AttestationPolicyClient
APBindingV1Alpha1() apbindingv1alpha1.APBindingClient
FederationV1Alpha1() federationV1Alpha1.FederationClient
DataStoreV1Alpha1() datastorev1alpha1.DataStoreClient
WorkloadV1Alpha1() workloadv1alpha1.WorkloadClient
IdentityV1Alpha1() identityv1alpha1.IdentityClient
RoleBindingV1Alpha1() rolebindingv1alpha1.RoleBindingClient
}
ClientSet is an interface that provides methods for accessing individual versioned clients for specific gRPC services in Cofide Connect API.
func New ¶
func New(conn grpc.ClientConnInterface) ClientSet
New instantiates a new ClientSet for communication with a Connect API.
func NewSPIFFEMTLSClient ¶ added in v0.46.0
func NewSPIFFEMTLSClient( config *Config, x509Source *workloadapi.X509Source, bundleSource *workloadapi.BundleSource, opts ...Option, ) (ClientSet, *grpc.ClientConn, error)
NewSPIFFEMTLSClient creates a ClientSet and underlying gRPC connection to the Cofide Connect API secured with SPIFFE mTLS. The caller is responsible for closing the returned *grpc.ClientConn.
type Config ¶ added in v0.46.0
type Config struct {
// ConnectURL is the base host:port of the Cofide Connect service
ConnectURL string
// ConnectTrustDomain is the SPIFFE trust domain of the Cofide Connect service
ConnectTrustDomain string
}
Config holds the configuration needed to establish a connection to a Cofide Connect API
type Option ¶ added in v0.46.0
type Option func(*options)
func WithAgentSubdomain ¶ added in v0.46.0
WithAgentSubdomain overrides the subdomain used for the gRPC authority header (default: "connect-agent")
func WithGRPCDialOptions ¶ added in v0.46.0
func WithGRPCDialOptions(dialOpts ...grpc.DialOption) Option
WithGRPCDialOptions appends additional gRPC dial options (e.g. interceptors).
func WithServerSubdomain ¶ added in v0.46.0
WithServerSubdomain overrides the subdomain used for the Connect server URI (default: "connect")
Directories
¶
| Path | Synopsis |
|---|---|
|
agent
|
|
|
apbinding
|
|
|
attestationpolicy
|
|
|
cluster
|
|
|
datastore
|
|
|
fake
|
|
|
federation
|
|
|
identity
|
|
|
organization
|
|
|
rolebinding
|
|
|
trustzone
|
|
|
trustzoneserver
|
|
|
workload
|
|