metadata

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 3 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 Info

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
}

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

func Metadata

func Metadata() Info

Metadata returns the metadata for the controller manager.

func (Info) UserAgent

func (inf Info) UserAgent() string

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

Jump to

Keyboard shortcuts

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