Discover Packages
github.com/metal-stack/metal-apiserver
pkg
k8s
package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Jul 13, 2026
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
secret.go
Stores a key/value pair in a Kubernetes Secret using only the Go standard library.
It reads the in-cluster service-account token and CA cert, then calls the K8s API directly.
type Secret struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Metadata map[string ]any `json:"metadata"`
Data map[string ]string `json:"data"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.