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: 2 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"`
	DestinationAccount string   `valid:"required"`
	Sources            []string `json:"Source"`
	Destinations       []string `json:"Destination"`
	Ports              []string
}

func (*CreateReq) Validate

func (c *CreateReq) Validate() error

type DeleteReq

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

type Entity

type Entity struct {
	Id                 string
	Status             string
	Enabled            bool
	Source             []string
	Destination        []string
	DestinationAccount string
	Ports              []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        bool
	Sources        []string `json:"Source"`
	Destinations   []string `json:"Destination"`
	Ports          []string
}

func (*UpdateReq) Validate

func (u *UpdateReq) Validate() error

Jump to

Keyboard shortcuts

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