Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPTablesExecution ¶
func NewIPTablesExecution ¶
func NewIPTablesExecution() (*IPTablesExecution, error)
func (*IPTablesExecution) Run ¶
func (iptex *IPTablesExecution) Run(commandRules []string)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) UpdateRules ¶
func (*Manager) WebService ¶
func (mgr *Manager) WebService() *restful.WebService
WebService creates a new service that can handle REST requests for User resources.
func (*Manager) WebServices ¶
func (mgr *Manager) WebServices() []*restful.WebService
type User ¶
type User struct { ID string `json:"id" description:"identifier of the user"` Name string `json:"name" description:"name of the user" default:"john"` Age int `json:"age" description:"age of the user" default:"21"` }
User is just a sample type
type UserResource ¶
type UserResource struct {
// contains filtered or unexported fields
}
UserResource is the REST layer to the User domain
func (UserResource) WebService ¶
func (u UserResource) WebService() *restful.WebService
WebService creates a new service that can handle REST requests for User resources.
Click to show internal directories.
Click to hide internal directories.