Documentation ¶
Index ¶
Constants ¶
View Source
const CreateRequest = `` /* 239-byte string literal not displayed */
View Source
const CreateResponse = `` /* 1204-byte string literal not displayed */
View Source
const CreateRuleRequest = `
{
"description": "Default security group",
"direction": "egress",
"ethertype": "IPv4",
"protocol": "tcp"
}
`
View Source
const CreateRuleResponse = `` /* 413-byte string literal not displayed */
View Source
const GetResponse = `` /* 1204-byte string literal not displayed */
View Source
const ListResponse = `` /* 1503-byte string literal not displayed */
View Source
const MetadataCreateRequest = `
{
"test1": "test1",
"test2": "test2"
}
`
View Source
const MetadataListResponse = `` /* 215-byte string literal not displayed */
View Source
const MetadataResponse = `
{
"key": "cost-center",
"value": "Atlanta",
"read_only": false
}
`
View Source
const UpdateRequest = `
{
"name": "default"
}
`
Variables ¶
View Source
var ( SecurityGroup1 = securitygroups.SecurityGroup{ Name: groupName, Description: groupDescription, ID: groupID, CreatedAt: groupCreatedTime, UpdatedAt: &groupUpdatedTime, RevisionNumber: 4, SecurityGroupRules: []securitygroups.SecurityGroupRule{ { ID: groupRuleID, SecurityGroupID: groupID, Direction: direction, RemoteGroupID: nil, EtherType: &eitherType, Protocol: &sgProto, PortRangeMax: nil, PortRangeMin: nil, Description: nil, RemoteIPPrefix: nil, CreatedAt: groupCreatedTime, UpdatedAt: &groupUpdatedTime, RevisionNumber: 0, }, { ID: groupRuleID, SecurityGroupID: groupID, Direction: direction, RemoteGroupID: nil, EtherType: &eitherType, Protocol: &sgProto2, PortRangeMax: nil, PortRangeMin: nil, Description: nil, RemoteIPPrefix: nil, CreatedAt: groupCreatedTime, UpdatedAt: &groupUpdatedTime, RevisionNumber: 0, }, }, ProjectID: fake.ProjectID, RegionID: fake.RegionID, Region: "Luxembourg 1", } ExpectedSecurityGroupSlice = []securitygroups.SecurityGroup{SecurityGroup1} Metadata1 = securitygroups.Metadata{ Key: "cost-center", Value: "Atlanta", ReadOnly: false, } Metadata2 = securitygroups.Metadata{ Key: "data-center", Value: "A", ReadOnly: false, } ExpectedMetadataList = []securitygroups.Metadata{Metadata1, Metadata2} )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.