Documentation ¶
Index ¶
- Constants
- func CreateBackendService(backendServices *compute.BackendServicesClient, gcpProject, name string) *computepb.BackendService
- func CreateEmptyRouter(routers *compute.RoutersClient, network *computepb.Network, ...) *computepb.Router
- func CreateIPAddress(addresses *compute.AddressesClient, gcpProject, name string) *computepb.Address
- func CreateNATRouter(routers *compute.RoutersClient, address *computepb.Address, ...) *computepb.Router
- func DeleteBackendService(backendServices *compute.BackendServicesClient, gcpProject, name string)
- func DeleteFirewall(firewalls *compute.FirewallsClient, gcpProject, firewallName string)
- func DeleteIPAddress(addresses *compute.AddressesClient, gcpProject, name string)
- func DeleteRouter(routers *compute.RoutersClient, gcpProject, name string)
- func DeleteSecurityPolicy(securityPolicies *compute.SecurityPoliciesClient, gcpProject, name string)
- func GenerateGUID(prefix string) string
- func GetDefaultNetwork(networks *compute.NetworksClient, gcpProject string) *computepb.Network
- func GetEnvOrSkip(env string) string
- func MapRulesByPriority(rules []*computepb.SecurityPolicyRule) map[int32]*computepb.SecurityPolicyRule
- func PatchClusterStatus(k8sClient client.Client, cluster *capg.GCPCluster, ...)
Constants ¶
View Source
const ( TestDescription = "test resource for capg-firewall-rule-operator" TestRegion = "europe-west3" )
Variables ¶
This section is empty.
Functions ¶
func CreateBackendService ¶ added in v0.5.0
func CreateBackendService(backendServices *compute.BackendServicesClient, gcpProject, name string) *computepb.BackendService
func CreateEmptyRouter ¶ added in v0.5.1
func CreateIPAddress ¶ added in v0.5.0
func CreateIPAddress(addresses *compute.AddressesClient, gcpProject, name string) *computepb.Address
func CreateNATRouter ¶ added in v0.5.1
func DeleteBackendService ¶ added in v0.5.0
func DeleteBackendService(backendServices *compute.BackendServicesClient, gcpProject, name string)
func DeleteFirewall ¶
func DeleteFirewall(firewalls *compute.FirewallsClient, gcpProject, firewallName string)
func DeleteIPAddress ¶ added in v0.5.0
func DeleteIPAddress(addresses *compute.AddressesClient, gcpProject, name string)
func DeleteRouter ¶ added in v0.5.0
func DeleteRouter(routers *compute.RoutersClient, gcpProject, name string)
func DeleteSecurityPolicy ¶ added in v0.5.0
func DeleteSecurityPolicy(securityPolicies *compute.SecurityPoliciesClient, gcpProject, name string)
func GenerateGUID ¶
func GetDefaultNetwork ¶ added in v0.5.0
func GetDefaultNetwork(networks *compute.NetworksClient, gcpProject string) *computepb.Network
func GetEnvOrSkip ¶
func MapRulesByPriority ¶ added in v0.5.1
func MapRulesByPriority(rules []*computepb.SecurityPolicyRule) map[int32]*computepb.SecurityPolicyRule
func PatchClusterStatus ¶
func PatchClusterStatus(k8sClient client.Client, cluster *capg.GCPCluster, status capg.GCPClusterStatus)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.