service

package
v0.0.0-...-e5a9b9a Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelTasks

func CancelTasks(id uint32) error

отмена всех тасок, поставленных оператором

func Close

func Close() error

func CloseTaskGroup

func CloseTaskGroup(id uint32) error

закрытие таск группы

func GetTaskOutput

func GetTaskOutput(id int64) ([]byte, error)

получение output'a таска

func HelloHandshake

func HelloHandshake(ctx context.Context) error

обработка хендшейка из control стрима

func HelloInit

первичное подключение оператора к control стриму

func HelloMonitor

func HelloMonitor(ctx context.Context) error

поддержание подписки на control стрим

func Init

func Init(ctx context.Context, host string, token string) error

инициализация подключения к mgmt серверу

func NewTask

func NewTask(id uint32, v *operatorv1.NewTaskRequest) error

создание нового таска

func NewTaskGroup

func NewTaskGroup(id uint32, cmd string, visible bool) error

открытие новой таск группы

func NewTaskGroupMessage

func NewTaskGroupMessage(id uint32, tm defaults.TaskMessage, message string) error

отправка сообщения в таск группу

func PollBeaconTasks

func PollBeaconTasks(b *beacon.Beacon) error

подписка на получение тасков для определенного бикона

func SendChatMessage

func SendChatMessage(message string) error

создание сообщения в чат

func SubscribeBeacons

func SubscribeBeacons(ctx context.Context) error

подписка на получение биконов

func SubscribeChat

func SubscribeChat(ctx context.Context) error

подписка на получение сообщений из чата

func SubscribeTasks

func SubscribeTasks(ctx context.Context) error

подписка на получение обновлений по таскам

func UnpollBeaconTasks

func UnpollBeaconTasks(b *beacon.Beacon) error

стоп подписки на получение тасков для определенного бикона

Types

This section is empty.

Jump to

Keyboard shortcuts

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