Documentation ¶
Index ¶
- func MakeHandler(service Service, logger kitlog.Logger, ml machineLearning.Service) http.Handler
- func NewRebuildCHefNodeCommand(stateStore telegram.Store, chefStore chef.Store, telegram telegram.Service, ...) telegram.Command
- func NewRebuildChefNodeEnvironmentReplyCommandlet(telegram telegram.Service, service Service, chefService chef.Service, ...) telegram.Commandlet
- func NewRebuildChefNodeExecute(skynet Service, alert alert.Service, store telegram.Store, ...) telegram.Commandlet
- func NewRebuildChefNodeRecipeReplyCommandlet(store chef.Store, alert alert.Service, telegram telegram.Service) telegram.Commandlet
- func NewRebuildNodeCommand(alertService alert.Service, skynetService Service, store telegram.Store, ...) telegram.Command
- type Service
- type Skynet
- type SkynetRebuildRequest
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHandler ¶
MakeHandler returns a rest http handler. machine learning service can be set to nil if you do not want to store the requests
Types ¶
type Service ¶
type Service interface { RecreateNode(ctx context.Context, chatid uint32, nodeName, callerName string) error // contains filtered or unexported methods }
func NewInstrumentService ¶
type Skynet ¶
type Skynet struct { ID bson.ObjectId `bson:"_id,omitempty"` Address string Username string Password string }
Skynet is a storage object for skynet data
type SkynetRebuildRequest ¶
type Store ¶
type Store interface { /* AddSkynetEndpoint will add a skynet endpoint, or update if it already exists */ AddSkynetEndpoint(url, username, password string) error /* GetSkynetRecord will return the skynet record in the mongo DB, else throw an error if one doesnt exist. */ GetSkynetRecord() (Skynet, error) }
Click to show internal directories.
Click to hide internal directories.