fakeconnect

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeConnect

type FakeConnect struct {
	Mu                  sync.Mutex
	TrustZones          map[string]*trustzonepb.TrustZone
	TrustZoneBundles    map[string]*types.Bundle
	Clusters            map[string]*clusterpb.Cluster
	Agents              map[string]*agentpb.Agent
	AgentJoinTokens     map[string]map[string]string
	AgentStatus         map[string]*agentpb.AgentStatus
	FederatedServices   map[string]*federatedservicepb.FederatedService
	AttestationPolicies map[string]*attestationpolicypb.AttestationPolicy
	APBindings          map[string]*apbindingpb.APBinding
	Federations         map[string]*federationpb.Federation
	AttestedNodes       map[string]*datastoresvcpb.AttestedNode
	Workloads           map[string]*workloadpb.Workload
	Identities          map[string]*identitypb.Identity
}

FakeConnect implements the state for a fake Connect service.

func New

func New() *FakeConnect

func (*FakeConnect) ValidateAPBinding

func (f *FakeConnect) ValidateAPBinding(bindingID string) error

func (*FakeConnect) ValidateAgent

func (f *FakeConnect) ValidateAgent(agentID string) error

func (*FakeConnect) ValidateAttestationPolicy

func (f *FakeConnect) ValidateAttestationPolicy(policyID string) error

func (*FakeConnect) ValidateCluster

func (f *FakeConnect) ValidateCluster(clusterID string) error

func (*FakeConnect) ValidateFederatedService

func (f *FakeConnect) ValidateFederatedService(federatedServiceID string) error

func (*FakeConnect) ValidateFederation added in v0.15.2

func (f *FakeConnect) ValidateFederation(federationID string) error

func (*FakeConnect) ValidateIdentity added in v0.24.2

func (f *FakeConnect) ValidateIdentity(identityID string) error

func (*FakeConnect) ValidateTrustZone

func (f *FakeConnect) ValidateTrustZone(trustZoneID string) error

func (*FakeConnect) ValidateWorkload added in v0.24.2

func (f *FakeConnect) ValidateWorkload(workloadID string) error

Jump to

Keyboard shortcuts

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