agent

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Config           *config.Config
	EventClient      *EventClient
	SelfUpdate       *EventClient
	KubernetesClient *KubernetesClient
}

func NewAgent

func NewAgent(cfg *config.Config) *Agent

func (*Agent) Start

func (a *Agent) Start() error

type EventClient

type EventClient struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	Token        string `json:"token"`
	EventChannel string `json:"channel"`
}

type KubernetesClient

type KubernetesClient struct {
	Context   context.Context
	ClientSet *kubernetes.Clientset
}

type Message

type Message struct {
	AppID     int                    `json:"appid"`
	Date      string                 `json:"date"`
	Extras    map[string]interface{} `json:"extras"`
	MessageID int                    `json:"id"`
	Message   string                 `json:"message"`
	Title     string                 `json:"title"`
	Priority  int                    `json:"priority"`
}

type Paging

type Paging struct {
	Limit int    `json:"limit"`
	Next  string `json:"next"`
	Since int    `json:"since"`
	Size  int    `json:"size"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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