annotate

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogTypeAnnotation         = "logz.io/application_type"
	InstrumentationAnnotation = "logz.io/traces_instrument"
	ServiceNameAnnotation     = "logz.io/service-name"
)

Variables

This section is empty.

Functions

func UpdateResourceAnnotations

func UpdateResourceAnnotations(w http.ResponseWriter, r *http.Request)

Types

type ResourceAnnotateRequest

type ResourceAnnotateRequest struct {
	Name           string `json:"name"`
	Namespace      string `json:"namespace"`
	ControllerKind string `json:"controller_kind"`
	LogType        string `json:"log_type,omitempty"`
	ContainerName  string `json:"container_name"`
	ServiceName    string `json:"service_name,omitempty"`
}

ResourceAnnotateRequest is the JSON body of the POST request It contains the name, controller_kind, namespace, and log type of the resource name: name of the resource controller_kind: kind of the resource (deployment or statefulset) namespace: namespace of the resource log_type: desired log type container_name: name of the container associated with the request service_name: the desired service name for the application, should delete instrumentation if this filed is empty

type ResourceAnnotateResponse

type ResourceAnnotateResponse struct {
	Name           string  `json:"name"`
	Namespace      string  `json:"namespace"`
	ControllerKind string  `json:"controller_kind"`
	ServiceName    *string `json:"service_name"`
	ContainerName  string  `json:"container_name"`
	LogType        *string `json:"log_type"`
}

Jump to

Keyboard shortcuts

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