api

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindDeployment    = "deployment"
	KindStatefulSet   = "statefulset"
	ActionAdd         = "add"
	ActionDelete      = "delete"
	ErrorKubeConfig   = "Error getting Kubernetes config "
	ErrorInvalidInput = "Invalid input "
	ErrorDynamic      = "Error getting dynamic client "
	ErrorUpdate       = "Error updating resource "
	ErrorGet          = "Error getting resource "
	ErrorList         = "Error listing resources "
	ErrorTimeout      = "Timeout while updating the instrumentation status: "

	ResourceGroup                   = "logz.io"
	ResourceVersion                 = "v1alpha1"
	ResourceInstrumentedApplication = "instrumentedapplications"
)

Variables

View Source
var (
	ValidKinds   = []string{KindDeployment, KindStatefulSet}
	ValidActions = []string{ActionAdd, ActionDelete}
)

Functions

func DeepEqualMap

func DeepEqualMap(a, b map[string]interface{}) bool

DeepEqualMap compares two maps

func GetConfig

func GetConfig() (*rest.Config, error)

GetConfig returns a Kubernetes config

func GetTimeout

func GetTimeout() (time.Duration, error)

GetTimeout returns the timeout for the request in time.Duration in seconds

func InitLogger

func InitLogger() zap.SugaredLogger

InitLogger initializes the logger

func IsInternalResource

func IsInternalResource(name string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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