Documentation
¶
Index ¶
- Variables
- type SecurityGroup
- func (*SecurityGroup) Descriptor() ([]byte, []int)deprecated
- func (x *SecurityGroup) GetDataCenterId() string
- func (x *SecurityGroup) GetDescription() string
- func (x *SecurityGroup) GetId() string
- func (x *SecurityGroup) GetProjectId() string
- func (x *SecurityGroup) GetRules() []*SecurityGroup_Rule
- func (*SecurityGroup) ProtoMessage()
- func (x *SecurityGroup) ProtoReflect() protoreflect.Message
- func (x *SecurityGroup) Reset()
- func (x *SecurityGroup) String() string
- type SecurityGroup_Rule
- func (*SecurityGroup_Rule) Descriptor() ([]byte, []int)deprecated
- func (x *SecurityGroup_Rule) GetIcmpType() string
- func (x *SecurityGroup_Rule) GetId() string
- func (x *SecurityGroup_Rule) GetIpRangeCidr() string
- func (x *SecurityGroup_Rule) GetPorts() string
- func (x *SecurityGroup_Rule) GetProtocol() SecurityGroup_Rule_Protocol
- func (x *SecurityGroup_Rule) GetRuleType() SecurityGroup_Rule_RuleType
- func (*SecurityGroup_Rule) ProtoMessage()
- func (x *SecurityGroup_Rule) ProtoReflect() protoreflect.Message
- func (x *SecurityGroup_Rule) Reset()
- func (x *SecurityGroup_Rule) String() string
- type SecurityGroup_Rule_Protocol
- func (SecurityGroup_Rule_Protocol) Descriptor() protoreflect.EnumDescriptor
- func (x SecurityGroup_Rule_Protocol) Enum() *SecurityGroup_Rule_Protocol
- func (SecurityGroup_Rule_Protocol) EnumDescriptor() ([]byte, []int)deprecated
- func (x SecurityGroup_Rule_Protocol) Number() protoreflect.EnumNumber
- func (x SecurityGroup_Rule_Protocol) String() string
- func (SecurityGroup_Rule_Protocol) Type() protoreflect.EnumType
- type SecurityGroup_Rule_RuleType
- func (SecurityGroup_Rule_RuleType) Descriptor() protoreflect.EnumDescriptor
- func (x SecurityGroup_Rule_RuleType) Enum() *SecurityGroup_Rule_RuleType
- func (SecurityGroup_Rule_RuleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SecurityGroup_Rule_RuleType) Number() protoreflect.EnumNumber
- func (x SecurityGroup_Rule_RuleType) String() string
- func (SecurityGroup_Rule_RuleType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SecurityGroup_Rule_Protocol_name = map[int32]string{ 0: "PROTOCOL_UNKNOWN", 1: "PROTOCOL_ALL", 2: "PROTOCOL_TCP", 3: "PROTOCOL_UDP", 4: "PROTOCOL_ICMP", 5: "PROTOCOL_ICMPv6", 6: "PROTOCOL_IPSEC", } SecurityGroup_Rule_Protocol_value = map[string]int32{ "PROTOCOL_UNKNOWN": 0, "PROTOCOL_ALL": 1, "PROTOCOL_TCP": 2, "PROTOCOL_UDP": 3, "PROTOCOL_ICMP": 4, "PROTOCOL_ICMPv6": 5, "PROTOCOL_IPSEC": 6, } )
Enum value maps for SecurityGroup_Rule_Protocol.
View Source
var ( SecurityGroup_Rule_RuleType_name = map[int32]string{ 0: "RULE_TYPE_UNKNOWN", 1: "RULE_TYPE_INBOUND", 2: "RULE_TYPE_OUTBOUND", } SecurityGroup_Rule_RuleType_value = map[string]int32{ "RULE_TYPE_UNKNOWN": 0, "RULE_TYPE_INBOUND": 1, "RULE_TYPE_OUTBOUND": 2, } )
Enum value maps for SecurityGroup_Rule_RuleType.
View Source
var File_svc_compute_securitygroup_securitygroup_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SecurityGroup ¶
type SecurityGroup struct {
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
DataCenterId string `protobuf:"bytes,2,opt,name=data_center_id,json=dataCenterId,proto3" json:"data_center_id,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
Rules []*SecurityGroup_Rule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
func (*SecurityGroup) Descriptor
deprecated
func (*SecurityGroup) Descriptor() ([]byte, []int)
Deprecated: Use SecurityGroup.ProtoReflect.Descriptor instead.
func (*SecurityGroup) GetDataCenterId ¶
func (x *SecurityGroup) GetDataCenterId() string
func (*SecurityGroup) GetDescription ¶
func (x *SecurityGroup) GetDescription() string
func (*SecurityGroup) GetId ¶
func (x *SecurityGroup) GetId() string
func (*SecurityGroup) GetProjectId ¶
func (x *SecurityGroup) GetProjectId() string
func (*SecurityGroup) GetRules ¶
func (x *SecurityGroup) GetRules() []*SecurityGroup_Rule
func (*SecurityGroup) ProtoMessage ¶
func (*SecurityGroup) ProtoMessage()
func (*SecurityGroup) ProtoReflect ¶
func (x *SecurityGroup) ProtoReflect() protoreflect.Message
func (*SecurityGroup) Reset ¶
func (x *SecurityGroup) Reset()
func (*SecurityGroup) String ¶
func (x *SecurityGroup) String() string
type SecurityGroup_Rule ¶
type SecurityGroup_Rule struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Protocol SecurityGroup_Rule_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=org.cudo.compute.v1.SecurityGroup_Rule_Protocol" json:"protocol,omitempty"`
Ports string `protobuf:"bytes,3,opt,name=ports,proto3" json:"ports,omitempty"`
RuleType SecurityGroup_Rule_RuleType `` /* 139-byte string literal not displayed */
// single IP or CIDR format range to apply rule to
IpRangeCidr string `protobuf:"bytes,5,opt,name=ip_range_cidr,json=ipRangeCidr,proto3" json:"ip_range_cidr,omitempty"`
IcmpType string `protobuf:"bytes,6,opt,name=icmp_type,json=icmpType,proto3" json:"icmp_type,omitempty"`
// contains filtered or unexported fields
}
func (*SecurityGroup_Rule) Descriptor
deprecated
func (*SecurityGroup_Rule) Descriptor() ([]byte, []int)
Deprecated: Use SecurityGroup_Rule.ProtoReflect.Descriptor instead.
func (*SecurityGroup_Rule) GetIcmpType ¶
func (x *SecurityGroup_Rule) GetIcmpType() string
func (*SecurityGroup_Rule) GetId ¶
func (x *SecurityGroup_Rule) GetId() string
func (*SecurityGroup_Rule) GetIpRangeCidr ¶
func (x *SecurityGroup_Rule) GetIpRangeCidr() string
func (*SecurityGroup_Rule) GetPorts ¶
func (x *SecurityGroup_Rule) GetPorts() string
func (*SecurityGroup_Rule) GetProtocol ¶
func (x *SecurityGroup_Rule) GetProtocol() SecurityGroup_Rule_Protocol
func (*SecurityGroup_Rule) GetRuleType ¶
func (x *SecurityGroup_Rule) GetRuleType() SecurityGroup_Rule_RuleType
func (*SecurityGroup_Rule) ProtoMessage ¶
func (*SecurityGroup_Rule) ProtoMessage()
func (*SecurityGroup_Rule) ProtoReflect ¶
func (x *SecurityGroup_Rule) ProtoReflect() protoreflect.Message
func (*SecurityGroup_Rule) Reset ¶
func (x *SecurityGroup_Rule) Reset()
func (*SecurityGroup_Rule) String ¶
func (x *SecurityGroup_Rule) String() string
type SecurityGroup_Rule_Protocol ¶
type SecurityGroup_Rule_Protocol int32
const ( SecurityGroup_Rule_PROTOCOL_UNKNOWN SecurityGroup_Rule_Protocol = 0 SecurityGroup_Rule_PROTOCOL_ALL SecurityGroup_Rule_Protocol = 1 SecurityGroup_Rule_PROTOCOL_TCP SecurityGroup_Rule_Protocol = 2 SecurityGroup_Rule_PROTOCOL_UDP SecurityGroup_Rule_Protocol = 3 SecurityGroup_Rule_PROTOCOL_ICMP SecurityGroup_Rule_Protocol = 4 SecurityGroup_Rule_PROTOCOL_ICMPv6 SecurityGroup_Rule_Protocol = 5 SecurityGroup_Rule_PROTOCOL_IPSEC SecurityGroup_Rule_Protocol = 6 )
func (SecurityGroup_Rule_Protocol) Descriptor ¶
func (SecurityGroup_Rule_Protocol) Descriptor() protoreflect.EnumDescriptor
func (SecurityGroup_Rule_Protocol) Enum ¶
func (x SecurityGroup_Rule_Protocol) Enum() *SecurityGroup_Rule_Protocol
func (SecurityGroup_Rule_Protocol) EnumDescriptor
deprecated
func (SecurityGroup_Rule_Protocol) EnumDescriptor() ([]byte, []int)
Deprecated: Use SecurityGroup_Rule_Protocol.Descriptor instead.
func (SecurityGroup_Rule_Protocol) Number ¶
func (x SecurityGroup_Rule_Protocol) Number() protoreflect.EnumNumber
func (SecurityGroup_Rule_Protocol) String ¶
func (x SecurityGroup_Rule_Protocol) String() string
func (SecurityGroup_Rule_Protocol) Type ¶
func (SecurityGroup_Rule_Protocol) Type() protoreflect.EnumType
type SecurityGroup_Rule_RuleType ¶
type SecurityGroup_Rule_RuleType int32
const ( SecurityGroup_Rule_RULE_TYPE_UNKNOWN SecurityGroup_Rule_RuleType = 0 SecurityGroup_Rule_RULE_TYPE_INBOUND SecurityGroup_Rule_RuleType = 1 SecurityGroup_Rule_RULE_TYPE_OUTBOUND SecurityGroup_Rule_RuleType = 2 )
func (SecurityGroup_Rule_RuleType) Descriptor ¶
func (SecurityGroup_Rule_RuleType) Descriptor() protoreflect.EnumDescriptor
func (SecurityGroup_Rule_RuleType) Enum ¶
func (x SecurityGroup_Rule_RuleType) Enum() *SecurityGroup_Rule_RuleType
func (SecurityGroup_Rule_RuleType) EnumDescriptor
deprecated
func (SecurityGroup_Rule_RuleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SecurityGroup_Rule_RuleType.Descriptor instead.
func (SecurityGroup_Rule_RuleType) Number ¶
func (x SecurityGroup_Rule_RuleType) Number() protoreflect.EnumNumber
func (SecurityGroup_Rule_RuleType) String ¶
func (x SecurityGroup_Rule_RuleType) String() string
func (SecurityGroup_Rule_RuleType) Type ¶
func (SecurityGroup_Rule_RuleType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.