crossdc_firewall

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateReq

type CreateReq struct {
	DataCenter            string `json:"-" valid:"required" URIParam:"yes"`
	DestinationAccountId  string `valid:"required"`
	DestinationLocationId string `valid:"required"`
	DestinationCidr       string `valid:"required"`
	Enabled               string `oneOf:"true,false"`
	SourceCidr            string `valid:"required"`
}

func (*CreateReq) Validate

func (c *CreateReq) Validate() error

type DeleteReq

type DeleteReq struct {
	DataCenter     string `valid:"required" URIParam:"yes"`
	FirewallPolicy string `valid:"required" URIParam:"yes"`
}

type Entity

type Entity struct {
	Id                  string
	Status              string
	Enabled             bool
	SourceCidr          string
	SourceAccount       string
	SourceLocation      string
	DestinationCidr     string
	DestinationAccount  string
	DestinationLocation string
	Links               []models.LinkEntity
}

type GetReq

type GetReq struct {
	DataCenter     string `valid:"required" URIParam:"yes"`
	FirewallPolicy string `valid:"required" URIParam:"yes"`
}

type ListReq

type ListReq struct {
	DataCenter              string `valid:"required" URIParam:"yes"`
	DestinationAccountAlias string `URIParam:"yes"`
}

type UpdateReq

type UpdateReq struct {
	DataCenter     string `json:"-" valid:"required" URIParam:"yes"`
	FirewallPolicy string `json:"-" valid:"required" URIParam:"yes"`
	Enabled        string `json:"-" valid:"required" URIParam:"yes" oneOf:"true,false"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL