agent

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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