admin

package
v0.0.0-...-21df278 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityHandlers

type ActivityHandlers struct {
	ContextExtractor middleware.UserContextExtractor
	// contains filtered or unexported fields
}

func NewActivityHandlers

func NewActivityHandlers(orgClient am.OrganizationService, scanGroupClient am.ScanGroupService, coordinatorClient am.CoordinatorService, systemContext am.UserContext) *ActivityHandlers

func (*ActivityHandlers) GroupActivity

func (h *ActivityHandlers) GroupActivity(w http.ResponseWriter, req *http.Request)

func (*ActivityHandlers) ListGroups

func (h *ActivityHandlers) ListGroups(w http.ResponseWriter, req *http.Request)

func (*ActivityHandlers) ListOrganizations

func (h *ActivityHandlers) ListOrganizations(w http.ResponseWriter, req *http.Request)

func (*ActivityHandlers) ResetGroup

func (h *ActivityHandlers) ResetGroup(w http.ResponseWriter, req *http.Request)

type ActivityResponse

type ActivityResponse struct {
	Groups []*am.ScanGroup        `json:"groups"`
	Stats  map[int]*am.GroupStats `json:"group_stats"`
}

type GroupList

type GroupList struct {
	Groups []*am.ScanGroup `json:"groups"`
	Status string          `json:"status"`
}

type HealthData

type HealthData struct {
	Status   string                           `json:"status"`
	Services map[string]*health.ServiceHealth `json:"service_health"`
}

type HealthHandlers

type HealthHandlers struct {
	ContextExtractor middleware.UserContextExtractor
	// contains filtered or unexported fields
}

func NewHealthHandlers

func NewHealthHandlers() *HealthHandlers

func (*HealthHandlers) CheckHealth

func (h *HealthHandlers) CheckHealth(w http.ResponseWriter, req *http.Request)

type OrgList

type OrgList struct {
	Orgs   []*am.Organization `json:"orgs"`
	Status string             `json:"status"`
}

type ProvisionHandlers

type ProvisionHandlers struct {
	ContextExtractor middleware.UserContextExtractor
	// contains filtered or unexported fields
}

func NewProvisionHandlers

func NewProvisionHandlers(orgClient am.OrganizationService, provisioner provision.OrgProvisioner, roles map[string]string) *ProvisionHandlers

func (*ProvisionHandlers) CreateOrg

func (h *ProvisionHandlers) CreateOrg(w http.ResponseWriter, req *http.Request)

func (*ProvisionHandlers) CreateUser

func (h *ProvisionHandlers) CreateUser(w http.ResponseWriter, req *http.Request)

func (*ProvisionHandlers) DeleteOrg

func (h *ProvisionHandlers) DeleteOrg(w http.ResponseWriter, req *http.Request)

func (*ProvisionHandlers) UpdateOrg

func (h *ProvisionHandlers) UpdateOrg(w http.ResponseWriter, req *http.Request)

type ResetGroupRequest

type ResetGroupRequest struct {
	OrgID   int  `json:"org_id,omitempty"`
	GroupID int  `json:"group_id,omitempty"`
	All     bool `json:"all,omitempty"`
}

Jump to

Keyboard shortcuts

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