utils

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const BindTokenPath = "/var/run/secrets/tokens/bound-token"

Variables

View Source
var (
	AgentReady int32 = 0
)

Functions

func GetToken added in v0.5.6

func GetToken() string

func GinLogger added in v0.5.7

func GinLogger() gin.HandlerFunc

func InStringArray

func InStringArray(c string, array []string) bool

func InUint32Array

func InUint32Array(i uint32, array []uint32) bool

func InitAndStartTokenRotation added in v0.5.6

func InitAndStartTokenRotation(interval time.Duration, logger logr.Logger)

func PostDataToStatusService

func PostDataToStatusService(reqBody []byte, debug bool, address string, port int) error

func PostStatusToStatusService

func PostStatusToStatusService(reqBody []byte, debug bool, address string, port int) error

func RequestClassifierService added in v0.5.6

func RequestClassifierService(reqBody []byte, debug bool, address string, port int) ([]byte, error)

func SetAgentReady added in v0.5.7

func SetAgentReady()

func SetAgentUnready added in v0.5.7

func SetAgentUnready()

func TagLeaderPod

func TagLeaderPod(podInterface corev1.PodInterface) error

func UnTagLeaderPod

func UnTagLeaderPod(podInterface corev1.PodInterface) error

func WaitForManagerReady added in v0.5.7

func WaitForManagerReady(debug bool, address string, port int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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