Documentation ¶
Index ¶
Constants ¶
View Source
const GUIDParam = "guid"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { DB *sql.DB Presenter Presenter Permissions permissions.Querier }
func (*Controller) Get ¶
func (cont *Controller) Get(echoCtx echo.Context) error
func (*Controller) List ¶
func (cont *Controller) List(echoCtx echo.Context) error
type FilterParams ¶
type Links ¶
type Links struct {
Self pagination.Link `json:"self"`
}
type ListResponse ¶
type ListResponse struct { Pagination *pagination.Pagination `json:"pagination"` Resources []*Response `json:"resources"` }
type Presenter ¶
type Presenter interface { ResponseObject(securityGroup *models.SecurityGroup, resourcePath string) (*Response, error) ListResponseObject( securityGroups models.SecurityGroupSlice, totalResults int64, paginationParams pagination.Params, resourcePath string) (*ListResponse, error) }
func NewPresenter ¶
func NewPresenter() Presenter
type RelationshipData ¶
type RelationshipData struct {
Data []SecurityGroupSpace `json:"data"`
}
type Response ¶
type Response struct { GUID string `json:"guid"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Name string `json:"name"` Rules []Rule `json:"rules"` GloballyEnabled map[string]bool `json:"globally_enabled"` Links Links `json:"links"` Relationships map[string]RelationshipData `json:"relationships"` }
type SecurityGroupSpace ¶
type SecurityGroupSpace struct {
GUID string `json:"guid"`
}
Click to show internal directories.
Click to hide internal directories.