Documentation ¶
Index ¶
- type AzureAllowSecurityRuleFixture
- type AzureDenyAllSecurityRuleFixture
- type AzureFixture
- func (f *AzureFixture) AllowSecurityRule(protocol network.SecurityRuleProtocol, ipFamily iputil.Family, ...) *AzureAllowSecurityRuleFixture
- func (f *AzureFixture) DenyAllSecurityRule(ipFamily iputil.Family) *AzureDenyAllSecurityRuleFixture
- func (f *AzureFixture) LoadBalancer() *AzureLoadBalancerFixture
- func (f *AzureFixture) NNoiseSecurityRules(nRules int) []network.SecurityRule
- func (f *AzureFixture) NoiseSecurityRules() []network.SecurityRule
- func (f *AzureFixture) PublicIPAddress(name string) *AzurePublicIPAddressFixture
- func (f *AzureFixture) SecurityGroup() *AzureSecurityGroupFixture
- func (f *AzureFixture) ServiceTag() string
- func (f *AzureFixture) ServiceTags(n int) []string
- type AzureLoadBalancerFixture
- func (f *AzureLoadBalancerFixture) AdditionalAddresses() []string
- func (f *AzureLoadBalancerFixture) AdditionalIPv4Addresses() []string
- func (f *AzureLoadBalancerFixture) AdditionalIPv6Addresses() []string
- func (f *AzureLoadBalancerFixture) Addresses() []string
- func (f *AzureLoadBalancerFixture) BackendPoolAddresses() []string
- func (f *AzureLoadBalancerFixture) BackendPoolIPv4Addresses() []string
- func (f *AzureLoadBalancerFixture) BackendPoolIPv6Addresses() []string
- func (f *AzureLoadBalancerFixture) Build() network.LoadBalancer
- func (f *AzureLoadBalancerFixture) IPv4Addresses() []string
- func (f *AzureLoadBalancerFixture) IPv6Addresses() []string
- type AzurePublicIPAddressFixture
- type AzureSecurityGroupFixture
- type Fixture
- func (f *Fixture) Azure() *AzureFixture
- func (f *Fixture) Kubernetes() *KubernetesFixture
- func (f *Fixture) RandomIPv4AddressStrings(n int) []string
- func (f *Fixture) RandomIPv4Addresses(n int) []netip.Addr
- func (f *Fixture) RandomIPv4PrefixStrings(n int) []string
- func (f *Fixture) RandomIPv4Prefixes(n int) []netip.Prefix
- func (f *Fixture) RandomIPv6AddressStrings(n int) []string
- func (f *Fixture) RandomIPv6Addresses(n int) []netip.Addr
- func (f *Fixture) RandomIPv6PrefixStrings(n int) []string
- func (f *Fixture) RandomIPv6Prefixes(n int) []netip.Prefix
- func (f *Fixture) RandomUint32(n uint32) uint32
- func (f *Fixture) RandomUint64(n uint64) uint64
- type KubernetesFixture
- type KubernetesServiceFixture
- func (f *KubernetesServiceFixture) Build() v1.Service
- func (f *KubernetesServiceFixture) TCPNodePorts() []int32
- func (f *KubernetesServiceFixture) TCPPorts() []int32
- func (f *KubernetesServiceFixture) UDPNodePorts() []int32
- func (f *KubernetesServiceFixture) UDPPorts() []int32
- func (f *KubernetesServiceFixture) WithAllowedIPRanges(parts ...string) *KubernetesServiceFixture
- func (f *KubernetesServiceFixture) WithAllowedServiceTags(parts ...string) *KubernetesServiceFixture
- func (f *KubernetesServiceFixture) WithDenyAllExceptLoadBalancerSourceRanges() *KubernetesServiceFixture
- func (f *KubernetesServiceFixture) WithDisableFloatingIP() *KubernetesServiceFixture
- func (f *KubernetesServiceFixture) WithIngressIPs(ips []string) *KubernetesServiceFixture
- func (f *KubernetesServiceFixture) WithInternalEnabled() *KubernetesServiceFixture
- func (f *KubernetesServiceFixture) WithLoadBalancerSourceRanges(parts ...string) *KubernetesServiceFixture
- func (f *KubernetesServiceFixture) WithName(name string) *KubernetesServiceFixture
- func (f *KubernetesServiceFixture) WithNamespace(ns string) *KubernetesServiceFixture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureAllowSecurityRuleFixture ¶
type AzureAllowSecurityRuleFixture struct {
// contains filtered or unexported fields
}
AzureAllowSecurityRuleFixture is a fixture for an allow security rule.
func (*AzureAllowSecurityRuleFixture) Build ¶
func (f *AzureAllowSecurityRuleFixture) Build() network.SecurityRule
func (*AzureAllowSecurityRuleFixture) WithDestination ¶
func (f *AzureAllowSecurityRuleFixture) WithDestination(prefixes ...string) *AzureAllowSecurityRuleFixture
func (*AzureAllowSecurityRuleFixture) WithPriority ¶
func (f *AzureAllowSecurityRuleFixture) WithPriority(p int32) *AzureAllowSecurityRuleFixture
type AzureDenyAllSecurityRuleFixture ¶
type AzureDenyAllSecurityRuleFixture struct {
// contains filtered or unexported fields
}
AzureDenyAllSecurityRuleFixture is a fixture for a deny-all security rule.
func (*AzureDenyAllSecurityRuleFixture) Build ¶
func (f *AzureDenyAllSecurityRuleFixture) Build() network.SecurityRule
func (*AzureDenyAllSecurityRuleFixture) WithDestination ¶
func (f *AzureDenyAllSecurityRuleFixture) WithDestination(prefixes ...string) *AzureDenyAllSecurityRuleFixture
func (*AzureDenyAllSecurityRuleFixture) WithPriority ¶
func (f *AzureDenyAllSecurityRuleFixture) WithPriority(p int32) *AzureDenyAllSecurityRuleFixture
type AzureFixture ¶
type AzureFixture struct{}
func (*AzureFixture) AllowSecurityRule ¶
func (f *AzureFixture) AllowSecurityRule( protocol network.SecurityRuleProtocol, ipFamily iputil.Family, srcPrefixes []string, dstPorts []int32, ) *AzureAllowSecurityRuleFixture
func (*AzureFixture) DenyAllSecurityRule ¶
func (f *AzureFixture) DenyAllSecurityRule(ipFamily iputil.Family) *AzureDenyAllSecurityRuleFixture
func (*AzureFixture) LoadBalancer ¶
func (f *AzureFixture) LoadBalancer() *AzureLoadBalancerFixture
func (*AzureFixture) NNoiseSecurityRules ¶
func (f *AzureFixture) NNoiseSecurityRules(nRules int) []network.SecurityRule
NNoiseSecurityRules returns N non cloud-provider-specific security rules. It's not random, but it's good enough for testing.
func (*AzureFixture) NoiseSecurityRules ¶
func (f *AzureFixture) NoiseSecurityRules() []network.SecurityRule
NoiseSecurityRules returns 3 non cloud-provider-specific security rules. Use NNoiseSecurityRules if you need more.
func (*AzureFixture) PublicIPAddress ¶
func (f *AzureFixture) PublicIPAddress(name string) *AzurePublicIPAddressFixture
func (*AzureFixture) SecurityGroup ¶
func (f *AzureFixture) SecurityGroup() *AzureSecurityGroupFixture
func (*AzureFixture) ServiceTag ¶
func (f *AzureFixture) ServiceTag() string
func (*AzureFixture) ServiceTags ¶
func (f *AzureFixture) ServiceTags(n int) []string
type AzureLoadBalancerFixture ¶
type AzureLoadBalancerFixture struct {
// contains filtered or unexported fields
}
func (*AzureLoadBalancerFixture) AdditionalAddresses ¶
func (f *AzureLoadBalancerFixture) AdditionalAddresses() []string
func (*AzureLoadBalancerFixture) AdditionalIPv4Addresses ¶
func (f *AzureLoadBalancerFixture) AdditionalIPv4Addresses() []string
func (*AzureLoadBalancerFixture) AdditionalIPv6Addresses ¶
func (f *AzureLoadBalancerFixture) AdditionalIPv6Addresses() []string
func (*AzureLoadBalancerFixture) Addresses ¶
func (f *AzureLoadBalancerFixture) Addresses() []string
func (*AzureLoadBalancerFixture) BackendPoolAddresses ¶
func (f *AzureLoadBalancerFixture) BackendPoolAddresses() []string
func (*AzureLoadBalancerFixture) BackendPoolIPv4Addresses ¶
func (f *AzureLoadBalancerFixture) BackendPoolIPv4Addresses() []string
func (*AzureLoadBalancerFixture) BackendPoolIPv6Addresses ¶
func (f *AzureLoadBalancerFixture) BackendPoolIPv6Addresses() []string
func (*AzureLoadBalancerFixture) Build ¶
func (f *AzureLoadBalancerFixture) Build() network.LoadBalancer
func (*AzureLoadBalancerFixture) IPv4Addresses ¶
func (f *AzureLoadBalancerFixture) IPv4Addresses() []string
func (*AzureLoadBalancerFixture) IPv6Addresses ¶
func (f *AzureLoadBalancerFixture) IPv6Addresses() []string
type AzurePublicIPAddressFixture ¶
type AzurePublicIPAddressFixture struct {
// contains filtered or unexported fields
}
func (*AzurePublicIPAddressFixture) Build ¶
func (f *AzurePublicIPAddressFixture) Build() network.PublicIPAddress
func (*AzurePublicIPAddressFixture) WithAddress ¶
func (f *AzurePublicIPAddressFixture) WithAddress(address string) *AzurePublicIPAddressFixture
func (*AzurePublicIPAddressFixture) WithTag ¶
func (f *AzurePublicIPAddressFixture) WithTag(key, value string) *AzurePublicIPAddressFixture
type AzureSecurityGroupFixture ¶
type AzureSecurityGroupFixture struct {
// contains filtered or unexported fields
}
AzureSecurityGroupFixture is a fixture for an Azure security group.
func (*AzureSecurityGroupFixture) Build ¶
func (f *AzureSecurityGroupFixture) Build() network.SecurityGroup
func (*AzureSecurityGroupFixture) WithRules ¶
func (f *AzureSecurityGroupFixture) WithRules(rules []network.SecurityRule) *AzureSecurityGroupFixture
type Fixture ¶
type Fixture struct{}
func NewFixture ¶
func NewFixture() *Fixture
func (*Fixture) Azure ¶
func (f *Fixture) Azure() *AzureFixture
func (*Fixture) Kubernetes ¶
func (f *Fixture) Kubernetes() *KubernetesFixture
func (*Fixture) RandomIPv4AddressStrings ¶
func (*Fixture) RandomIPv4PrefixStrings ¶
func (*Fixture) RandomIPv6AddressStrings ¶
func (*Fixture) RandomIPv6PrefixStrings ¶
func (*Fixture) RandomUint32 ¶
func (*Fixture) RandomUint64 ¶
type KubernetesFixture ¶
type KubernetesFixture struct{}
func (*KubernetesFixture) Service ¶
func (f *KubernetesFixture) Service() *KubernetesServiceFixture
type KubernetesServiceFixture ¶
type KubernetesServiceFixture struct {
// contains filtered or unexported fields
}
func (*KubernetesServiceFixture) Build ¶
func (f *KubernetesServiceFixture) Build() v1.Service
func (*KubernetesServiceFixture) TCPNodePorts ¶
func (f *KubernetesServiceFixture) TCPNodePorts() []int32
func (*KubernetesServiceFixture) TCPPorts ¶
func (f *KubernetesServiceFixture) TCPPorts() []int32
func (*KubernetesServiceFixture) UDPNodePorts ¶
func (f *KubernetesServiceFixture) UDPNodePorts() []int32
func (*KubernetesServiceFixture) UDPPorts ¶
func (f *KubernetesServiceFixture) UDPPorts() []int32
func (*KubernetesServiceFixture) WithAllowedIPRanges ¶
func (f *KubernetesServiceFixture) WithAllowedIPRanges(parts ...string) *KubernetesServiceFixture
func (*KubernetesServiceFixture) WithAllowedServiceTags ¶
func (f *KubernetesServiceFixture) WithAllowedServiceTags(parts ...string) *KubernetesServiceFixture
func (*KubernetesServiceFixture) WithDenyAllExceptLoadBalancerSourceRanges ¶
func (f *KubernetesServiceFixture) WithDenyAllExceptLoadBalancerSourceRanges() *KubernetesServiceFixture
func (*KubernetesServiceFixture) WithDisableFloatingIP ¶
func (f *KubernetesServiceFixture) WithDisableFloatingIP() *KubernetesServiceFixture
func (*KubernetesServiceFixture) WithIngressIPs ¶
func (f *KubernetesServiceFixture) WithIngressIPs(ips []string) *KubernetesServiceFixture
func (*KubernetesServiceFixture) WithInternalEnabled ¶
func (f *KubernetesServiceFixture) WithInternalEnabled() *KubernetesServiceFixture
func (*KubernetesServiceFixture) WithLoadBalancerSourceRanges ¶
func (f *KubernetesServiceFixture) WithLoadBalancerSourceRanges(parts ...string) *KubernetesServiceFixture
func (*KubernetesServiceFixture) WithName ¶
func (f *KubernetesServiceFixture) WithName(name string) *KubernetesServiceFixture
func (*KubernetesServiceFixture) WithNamespace ¶
func (f *KubernetesServiceFixture) WithNamespace(ns string) *KubernetesServiceFixture
Click to show internal directories.
Click to hide internal directories.