Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Backend2Domain ¶
func Backend2Domain[B BackendRC, D DomainRC](in []*B, ret *DomainRcList[D])
Backend2Domain -
Types ¶
type AccTestCase ¶
type AccTestCase struct { TestName string `yaml:"name"` TfConfig string `yaml:"tf-config"` Expected BackendState `yaml:"expected-backend"` NonExpected BackendState `yaml:"not-expected-backend"` }
AccTestCase -
type AccTests ¶
type AccTests struct { Ctx context.Context InitialBackend BackendState `yaml:"initial-backend"` Cases []AccTestCase `yaml:"cases"` }
AccTests -
func (*AccTests) InitBackend ¶
func (acc *AccTests) InitBackend(t *testing.T, c BackendClient)
InitBackend -
type BackendRC ¶
type BackendRC interface { protos.Network | protos.SecGroup | protos.Rule | protos.FqdnRule | protos.SgIcmpRule | protos.SgSgIcmpRule | protos.CidrSgRule }
BackendRC -
type BackendRcList ¶
BackendRcList -
type BackendState ¶
type BackendState struct { Networks BackendRcList[protos.Network] `yaml:"networks"` SecGroups BackendRcList[protos.SecGroup] `yaml:"sec-groups"` SgSgRules BackendRcList[protos.Rule] `yaml:"sg-sg-rules"` SgFqdnRules BackendRcList[protos.FqdnRule] `yaml:"sg-fqdn-rules"` SgIcmpRules BackendRcList[protos.SgIcmpRule] `yaml:"sg-icmp-rules"` SgSgIcmpRules BackendRcList[protos.SgSgIcmpRule] `yaml:"sg-sg-icmp-rules"` CidrSgRules BackendRcList[protos.CidrSgRule] `yaml:"cidr-sg-rules"` }
BackendState -
type DomainRC ¶
type DomainRC interface { domain.Network | domain.SecurityGroup | domain.SGRule | domain.FQDNRule | domain.SgIcmpRule | domain.SgSgIcmpRule | domain.CidrSgRule }
DomainRC -
type DomainRcList ¶
type DomainRcList[T DomainRC] []T
DomainRcList -
func (DomainRcList[T]) AllIn ¶
func (lst DomainRcList[T]) AllIn(other DomainRcList[T], fullCompare bool) bool
AllIn -
func (DomainRcList[T]) AnyIn ¶
func (lst DomainRcList[T]) AnyIn(other DomainRcList[T], fullCompare bool) bool
AnyIn -
type ExpectationsChecker ¶
type ExpectationsChecker[B BackendRC, D DomainRC] struct { // contains filtered or unexported fields }
ExpectationsChecker -
func (ExpectationsChecker[B, D]) WeDontExpectFindAny ¶
func (exp ExpectationsChecker[B, D]) WeDontExpectFindAny(objs []*B) bool
WeDontExpectFindAny -
func (ExpectationsChecker[B, D]) WeExpectFindAll ¶
func (exp ExpectationsChecker[B, D]) WeExpectFindAll(objs []*B) bool
WeExpectFindAll -
Click to show internal directories.
Click to hide internal directories.