fakeconnect

package
v0.49.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: 18 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
	Organizations       map[string]*organizationpb.Organization
	TrustZones          map[string]*trustzonepb.TrustZone
	TrustZoneBundles    map[string]*types.Bundle
	TrustZoneServers    map[string]*trustzoneserverpb.TrustZoneServer
	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
	ExchangePolicies    map[string]*exchangepolicypb.ExchangePolicy
	Federations         map[string]*federationpb.Federation
	AttestedNodes       map[string]*datastoresvcpb.AttestedNode
	Workloads           map[string]*workloadpb.Workload
	Identities          map[string]*identitypb.Identity
	RoleBindings        map[string]*rolebindingpb.RoleBinding
}

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) ValidateExchangePolicy added in v0.47.0

func (f *FakeConnect) ValidateExchangePolicy(policyID 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) ValidateOrganization added in v0.30.0

func (f *FakeConnect) ValidateOrganization(organizationID string) error

func (*FakeConnect) ValidateRoleBinding added in v0.31.0

func (f *FakeConnect) ValidateRoleBinding(roleBindingID string) error

func (*FakeConnect) ValidateTrustZone

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

func (*FakeConnect) ValidateTrustZoneServer added in v0.39.0

func (f *FakeConnect) ValidateTrustZoneServer(trustZoneServerID 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