Documentation ¶
Index ¶
- Constants
- type AddPoolData
- type AddPoolHandler
- type AddServiceData
- type AddServiceHandler
- type AddServiceToPoolData
- type AddServiceToPoolHandler
- type DeletePoolData
- type DeletePoolHandler
- type DeleteServiceData
- type DeleteServiceHandler
- type DisablePoolData
- type DisablePoolHandler
- type DisableServiceData
- type DisableServiceHandler
- type EnablePoolData
- type EnablePoolHandler
- type EnableServiceData
- type EnableServiceHandler
- type Handler
- func AddPool() Handler
- func AddService() Handler
- func AddServiceToPool() Handler
- func DeletePool() Handler
- func DeleteService() Handler
- func DisablePool() Handler
- func DisableService() Handler
- func EnablePool() Handler
- func EnableService() Handler
- func ListPoolServices() Handler
- func ListPools() Handler
- func ListServicePools() Handler
- func ListServices() Handler
- func RemoveAllServicesFromPool() Handler
- func RemoveServiceFromAllPools() Handler
- func RemoveServiceFromPool() Handler
- func ShowPool() Handler
- func ShowService() Handler
- func UpdatePool() Handler
- func UpdateService() Handler
- type HandlerBase
- type ListPoolServicesData
- type ListPoolServicesHandler
- type ListPoolsHandler
- type ListServicePoolsData
- type ListServicePoolsHandler
- type ListServicesHandler
- type PoolCommands
- type RemoveAllServicesFromPoolData
- type RemoveAllServicesFromPoolHandler
- type RemoveServiceFromAllPoolsData
- type RemoveServiceFromAllPoolsHandler
- type RemoveServiceFromPoolData
- type RemoveServiceFromPoolHandler
- type ShowPoolData
- type ShowPoolHandler
- type ShowServiceData
- type ShowServiceHandler
- type UpdatePoolData
- type UpdatePoolHandler
- type UpdateServiceData
- type UpdateServiceHandler
Constants ¶
View Source
const AddPoolCmd string = "add_pool"
View Source
const AddPoolDescription string = "Add pool"
View Source
const AddServiceCmd string = "add_service"
View Source
const AddServiceDescription string = "Add service"
View Source
const AddServiceToPoolCmd string = "add_service_to_pool"
View Source
const AddServiceToPoolDescription string = "Add service to pool"
View Source
const DeletePoolCmd string = "delete_pool"
View Source
const DeletePoolDescription string = "Delete pool"
View Source
const DeleteServiceCmd string = "delete_service"
View Source
const DeleteServiceDescription string = "Delete service"
View Source
const DisablePoolCmd string = "disable_pool"
View Source
const DisablePoolDescription string = "Disable pool"
View Source
const DisableServiceCmd string = "disable_service"
View Source
const DisableServiceDescription string = "Disable service"
View Source
const EnablePoolCmd string = "enable_pool"
View Source
const EnablePoolDescription string = "Enable pool"
View Source
const EnableServiceCmd string = "enable_service"
View Source
const EnableServiceDescription string = "Enable service"
View Source
const ListPoolServicesCmd string = "list_pool_services"
View Source
const ListPoolServicesDescription string = "List pool services"
View Source
const ListPoolsCmd string = "list_pools"
View Source
const ListPoolsDescription string = "List pools"
View Source
const ListServicePoolsCmd string = "list_service_pools"
View Source
const ListServicePoolsDescription string = "List all pools that use given service"
View Source
const ListServicesCmd string = "list_services"
View Source
const ListServicesDescription string = "List services"
View Source
const RemoveAllServicesFromPoolCmd string = "remove_all_services_from_pool"
View Source
const RemoveAllServicesFromPoolDescription string = "Remove all services from pool"
View Source
const RemoveServiceFromAllPoolsCmd string = "remove_service_from_all_pools"
View Source
const RemoveServiceFromAllPoolsDescription string = "Remove service from all pools"
View Source
const RemoveServiceFromPoolCmd string = "remove_service_from_pool"
View Source
const RemoveServiceFromPoolDescription string = "Remove service from pool"
View Source
const ShowPoolCmd string = "show_pool"
View Source
const ShowPoolDescription string = "Show pool"
View Source
const ShowServiceCmd string = "show_service"
View Source
const ShowServiceDescription string = "Show service"
View Source
const UpdatePoolCmd string = "update_pool"
View Source
const UpdatePoolDescription string = "Update pool"
View Source
const UpdateServiceCmd string = "update_service"
View Source
const UpdateServiceDescription string = "Update service"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPoolData ¶
type AddPoolHandler ¶
type AddPoolHandler struct { HandlerBase AddPoolData }
func (*AddPoolHandler) Data ¶
func (a *AddPoolHandler) Data() interface{}
func (*AddPoolHandler) Execute ¶
func (a *AddPoolHandler) Execute(args []string) error
type AddServiceData ¶
type AddServiceData struct { pool.ServiceConfigBase pool.SecretsBase Name string `long:"name" description:"Short name of the service, must be unique" required:"true"` Type string `long:"type" description:"Service type" required:"true"` LongName string `long:"long-name" description:"Long name of the service"` Description string `long:"description" description:"Service description"` Active string `long:"active" description:"Service is active" default:"true"` Pool string `long:"pool" description:"Short name of the pool where to add service to"` Role string `long:"role" description:"Role of the service in the pool, must be unique per the pool and alphanumeric"` }
type AddServiceHandler ¶
type AddServiceHandler struct { HandlerBase AddServiceData }
func (*AddServiceHandler) Data ¶
func (a *AddServiceHandler) Data() interface{}
func (*AddServiceHandler) Execute ¶
func (a *AddServiceHandler) Execute(args []string) error
type AddServiceToPoolData ¶
type AddServiceToPoolData struct { Pool string `long:"pool" description:"Short name of the pool" required:"true"` Service string `long:"service" description:"Short name of the service" required:"true"` Role string `long:"role" description:"Role of the service in the pool, must be unique per the pool and alphanumeric" required:"true"` }
type AddServiceToPoolHandler ¶
type AddServiceToPoolHandler struct { HandlerBase AddServiceToPoolData }
func (*AddServiceToPoolHandler) Data ¶
func (a *AddServiceToPoolHandler) Data() interface{}
func (*AddServiceToPoolHandler) Execute ¶
func (a *AddServiceToPoolHandler) Execute(args []string) error
type DeletePoolData ¶
type DeletePoolData struct {
Pool string `long:"pool" description:"Short name of the pool" required:"true"`
}
type DeletePoolHandler ¶
type DeletePoolHandler struct { HandlerBase DeletePoolData }
func (*DeletePoolHandler) Data ¶
func (d *DeletePoolHandler) Data() interface{}
func (*DeletePoolHandler) Execute ¶
func (d *DeletePoolHandler) Execute(args []string) error
type DeleteServiceData ¶
type DeleteServiceData struct {
Service string `long:"service" description:"Short name of the service" required:"true"`
}
type DeleteServiceHandler ¶
type DeleteServiceHandler struct { HandlerBase DeleteServiceData }
func (*DeleteServiceHandler) Data ¶
func (d *DeleteServiceHandler) Data() interface{}
func (*DeleteServiceHandler) Execute ¶
func (d *DeleteServiceHandler) Execute(args []string) error
type DisablePoolData ¶
type DisablePoolData struct {
Pool string `long:"pool" description:"Short name of the pool" required:"true"`
}
type DisablePoolHandler ¶
type DisablePoolHandler struct { HandlerBase DisablePoolData }
func (*DisablePoolHandler) Data ¶
func (d *DisablePoolHandler) Data() interface{}
func (*DisablePoolHandler) Execute ¶
func (d *DisablePoolHandler) Execute(args []string) error
type DisableServiceData ¶
type DisableServiceData struct {
Service string `long:"pool" description:"Short name of the service" required:"true"`
}
type DisableServiceHandler ¶
type DisableServiceHandler struct { HandlerBase DisableServiceData }
func (*DisableServiceHandler) Data ¶
func (a *DisableServiceHandler) Data() interface{}
func (*DisableServiceHandler) Execute ¶
func (a *DisableServiceHandler) Execute(args []string) error
type EnablePoolData ¶
type EnablePoolData struct {
Pool string `long:"pool" description:"Short name of the pool" required:"true"`
}
type EnablePoolHandler ¶
type EnablePoolHandler struct { HandlerBase EnablePoolData }
func (*EnablePoolHandler) Data ¶
func (a *EnablePoolHandler) Data() interface{}
func (*EnablePoolHandler) Execute ¶
func (a *EnablePoolHandler) Execute(args []string) error
type EnableServiceData ¶
type EnableServiceData struct {
Service string `long:"pool" description:"Short name of the service" required:"true"`
}
type EnableServiceHandler ¶
type EnableServiceHandler struct { HandlerBase EnableServiceData }
func (*EnableServiceHandler) Data ¶
func (a *EnableServiceHandler) Data() interface{}
func (*EnableServiceHandler) Execute ¶
func (a *EnableServiceHandler) Execute(args []string) error
type Handler ¶
type Handler = console_tool.Handler[*PoolCommands]
func AddService ¶
func AddService() Handler
func AddServiceToPool ¶
func AddServiceToPool() Handler
func DeletePool ¶
func DeletePool() Handler
func DeleteService ¶
func DeleteService() Handler
func DisablePool ¶
func DisablePool() Handler
func DisableService ¶
func DisableService() Handler
func EnablePool ¶
func EnablePool() Handler
func EnableService ¶
func EnableService() Handler
func ListPoolServices ¶
func ListPoolServices() Handler
func ListServicePools ¶
func ListServicePools() Handler
func ListServices ¶
func ListServices() Handler
func RemoveAllServicesFromPool ¶
func RemoveAllServicesFromPool() Handler
func RemoveServiceFromAllPools ¶
func RemoveServiceFromAllPools() Handler
func RemoveServiceFromPool ¶
func RemoveServiceFromPool() Handler
func ShowService ¶
func ShowService() Handler
func UpdatePool ¶
func UpdatePool() Handler
func UpdateService ¶
func UpdateService() Handler
type HandlerBase ¶
type HandlerBase struct { console_tool.HandlerBase[*PoolCommands] }
func (*HandlerBase) Context ¶
func (b *HandlerBase) Context(data interface{}) (op_context.Context, pool.PoolController, error)
type ListPoolServicesData ¶
type ListPoolServicesData struct {
Pool string `long:"pool" description:"Short name of the pool" required:"true"`
}
type ListPoolServicesHandler ¶
type ListPoolServicesHandler struct { HandlerBase ListPoolServicesData }
func (*ListPoolServicesHandler) Data ¶
func (a *ListPoolServicesHandler) Data() interface{}
func (*ListPoolServicesHandler) Execute ¶
func (a *ListPoolServicesHandler) Execute(args []string) error
type ListPoolsHandler ¶
type ListPoolsHandler struct {
HandlerBase
}
func (*ListPoolsHandler) Execute ¶
func (a *ListPoolsHandler) Execute(args []string) error
type ListServicePoolsData ¶
type ListServicePoolsData struct {
Name string `long:"name" description:"Short name of the service" required:"true"`
}
type ListServicePoolsHandler ¶
type ListServicePoolsHandler struct { HandlerBase ListServicePoolsData }
func (*ListServicePoolsHandler) Data ¶
func (a *ListServicePoolsHandler) Data() interface{}
func (*ListServicePoolsHandler) Execute ¶
func (a *ListServicePoolsHandler) Execute(args []string) error
type ListServicesHandler ¶
type ListServicesHandler struct {
HandlerBase
}
func (*ListServicesHandler) Execute ¶
func (a *ListServicesHandler) Execute(args []string) error
type PoolCommands ¶
type PoolCommands struct { console_tool.Commands[*PoolCommands] GetPoolController func() pool.PoolController }
func NewPoolCommands ¶
func NewPoolCommands(poolController func() pool.PoolController) *PoolCommands
func (*PoolCommands) LoadHandlers ¶
func (p *PoolCommands) LoadHandlers()
type RemoveAllServicesFromPoolData ¶
type RemoveAllServicesFromPoolData struct {
Pool string `long:"pool" description:"Short name of the pool" required:"true"`
}
type RemoveAllServicesFromPoolHandler ¶
type RemoveAllServicesFromPoolHandler struct { HandlerBase RemoveAllServicesFromPoolData }
func (*RemoveAllServicesFromPoolHandler) Data ¶
func (a *RemoveAllServicesFromPoolHandler) Data() interface{}
func (*RemoveAllServicesFromPoolHandler) Execute ¶
func (a *RemoveAllServicesFromPoolHandler) Execute(args []string) error
type RemoveServiceFromAllPoolsData ¶
type RemoveServiceFromAllPoolsData struct {
Service string `long:"service" description:"Short name of the service" required:"true"`
}
type RemoveServiceFromAllPoolsHandler ¶
type RemoveServiceFromAllPoolsHandler struct { HandlerBase RemoveServiceFromAllPoolsData }
func (*RemoveServiceFromAllPoolsHandler) Data ¶
func (a *RemoveServiceFromAllPoolsHandler) Data() interface{}
func (*RemoveServiceFromAllPoolsHandler) Execute ¶
func (a *RemoveServiceFromAllPoolsHandler) Execute(args []string) error
type RemoveServiceFromPoolHandler ¶
type RemoveServiceFromPoolHandler struct { HandlerBase RemoveServiceFromPoolData }
func (*RemoveServiceFromPoolHandler) Data ¶
func (a *RemoveServiceFromPoolHandler) Data() interface{}
func (*RemoveServiceFromPoolHandler) Execute ¶
func (a *RemoveServiceFromPoolHandler) Execute(args []string) error
type ShowPoolData ¶
type ShowPoolData struct {
Pool string `long:"pool" description:"Short name of the pool" required:"true"`
}
type ShowPoolHandler ¶
type ShowPoolHandler struct { HandlerBase ShowPoolData }
func (*ShowPoolHandler) Data ¶
func (a *ShowPoolHandler) Data() interface{}
func (*ShowPoolHandler) Execute ¶
func (a *ShowPoolHandler) Execute(args []string) error
type ShowServiceData ¶
type ShowServiceData struct {
Service string `long:"service" description:"Short name of the service" required:"true"`
}
type ShowServiceHandler ¶
type ShowServiceHandler struct { HandlerBase ShowServiceData }
func (*ShowServiceHandler) Data ¶
func (a *ShowServiceHandler) Data() interface{}
func (*ShowServiceHandler) Execute ¶
func (a *ShowServiceHandler) Execute(args []string) error
type UpdatePoolData ¶
type UpdatePoolHandler ¶
type UpdatePoolHandler struct { HandlerBase UpdatePoolData }
func (*UpdatePoolHandler) Data ¶
func (a *UpdatePoolHandler) Data() interface{}
func (*UpdatePoolHandler) Execute ¶
func (a *UpdatePoolHandler) Execute(args []string) error
type UpdateServiceData ¶
type UpdateServiceHandler ¶
type UpdateServiceHandler struct { HandlerBase UpdateServiceData }
func (*UpdateServiceHandler) Data ¶
func (a *UpdateServiceHandler) Data() interface{}
func (*UpdateServiceHandler) Execute ¶
func (a *UpdateServiceHandler) Execute(args []string) error
Source Files ¶
- add_pool.go
- add_service.go
- add_service_to_pool.go
- delete_pool.go
- delete_service.go
- disable_pool.go
- disable_service.go
- enable_pool.go
- enable_service.go
- list_pool_services.go
- list_pools.go
- list_service_pools.go
- list_services.go
- pool_console.go
- remove_all_services_from_pool.go
- remove_service_from_all_pools.go
- remove_service_from_pool.go
- show_pool.go
- show_service.go
- update_pool.go
- update_service.go
Click to show internal directories.
Click to hide internal directories.