metadata

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package metadata includes metadata variables for logging and reporting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildFlavor added in v1.4.0

type BuildFlavor string

BuildFlavor is the flavor of the build.

const (
	// OSSFlavor is the open-source flavor.
	OSSFlavor BuildFlavor = "oss"
	// EEFlavor is the enterprise flavor.
	EEFlavor BuildFlavor = "enterprise"
)

type Info added in v1.3.0

type Info struct {
	// Release returns the release version, generally a semver like v1.0.0.
	Release string

	// Repo returns the git repository URL.
	Repo string

	// RepoURL returns the repository URL.
	RepoURL string

	// Commit returns the SHA from the current branch HEAD.
	Commit string

	// ProjectName is the name of the project.
	ProjectName string

	// Organization is the Kong organization
	Organization string

	// Flavor is the flavor of the build.
	Flavor BuildFlavor
}

Info is a struct type that holds the metadata for the controller manager.

func Metadata added in v1.3.0

func Metadata() Info

Metadata returns the metadata for the controller manager.

func (Info) UserAgent added in v1.4.0

func (inf Info) UserAgent() string

UserAgent returns the User-Agent string to use in all HTTP requests made by KGO.

Jump to

Keyboard shortcuts

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