Documentation ¶
Index ¶
- Constants
- Variables
- func GetControllerAddressGroupPrefix() string
- func GetControllerAppliedToPrefix() string
- func SetCloudResourcePrefix(CloudResourcePrefix string)
- type CloudResource
- type CloudResourceID
- type CloudResourceType
- type CloudRule
- type CloudRuleDescription
- type EgressRule
- type IngressRule
- type Rule
- type SynchronizationContent
Constants ¶
View Source
const ( Name = "Name" Namespace = "Ns" )
Used to create a rule description.
Variables ¶
View Source
var ( ControllerPrefix string ControllerAddressGroupPrefix string ControllerAppliedToPrefix string )
View Source
var ( CloudResourceTypeVM = CloudResourceType(reflect.TypeOf(runtimev1alpha1.VirtualMachine{}).Name()) CloudResourceTypeNIC = CloudResourceType(reflect.TypeOf(runtimev1alpha1.NetworkInterface{}).Name()) )
Functions ¶
func GetControllerAddressGroupPrefix ¶
func GetControllerAddressGroupPrefix() string
func GetControllerAppliedToPrefix ¶
func GetControllerAppliedToPrefix() string
func SetCloudResourcePrefix ¶
func SetCloudResourcePrefix(CloudResourcePrefix string)
Types ¶
type CloudResource ¶
type CloudResource struct { Type CloudResourceType CloudResourceID // TODO: Rename AccountID to AccountNameSpacedName. AccountID string CloudProvider string }
CloudResource uniquely identify a cloud resource.
func (*CloudResource) String ¶
func (c *CloudResource) String() string
type CloudResourceID ¶
func (*CloudResourceID) GetCloudName ¶
func (c *CloudResourceID) GetCloudName(membershipOnly bool) string
func (*CloudResourceID) String ¶
func (c *CloudResourceID) String() string
type CloudResourceType ¶
type CloudResourceType string
CloudResourceType specifies the type of cloud resource.
type CloudRule ¶
type CloudRuleDescription ¶
func (*CloudRuleDescription) String ¶
func (r *CloudRuleDescription) String() string
type EgressRule ¶
type EgressRule struct { ToPort *int ToDstIP []*net.IPNet ToSecurityGroups []*CloudResourceID Protocol *int AppliedToGroup map[string]struct{} }
EgressRule specifies one egress rule of cloud SecurityGroup.
type IngressRule ¶
type IngressRule struct { FromPort *int FromSrcIP []*net.IPNet FromSecurityGroups []*CloudResourceID Protocol *int AppliedToGroup map[string]struct{} }
IngressRule specifies one ingress rule of cloud SecurityGroup.
type SynchronizationContent ¶
type SynchronizationContent struct { Resource CloudResource MembershipOnly bool Members []CloudResource MembersWithOtherSGAttached []CloudResource IngressRules []CloudRule EgressRules []CloudRule }
SynchronizationContent returns a SecurityGroup content in cloud.
Click to show internal directories.
Click to hide internal directories.