kubernetes

package
v0.0.0-...-f661818 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() honeypots.Honeypot

Types

type Container

type Container struct {
	Name  string `json:"name,omitempty"`
	Image string `json:"image,omitempty"`
}

Container represents a single container

type DaemonSet

type DaemonSet struct {
	Kind       string                 `json:"kind"`
	APIVersion string                 `json:"apiVersion"`
	Metadata   map[string]interface{} `json:"metadata"`
	Spec       map[string]interface{} `json:"spec"`
}

DaemonSet represents a Kubernetes DaemonSet object

type Deployment

type Deployment struct {
	Kind       string           `json:"kind,omitempty"`
	APIVersion string           `json:"apiVersion,omitempty"`
	Metadata   ObjectMeta       `json:"metadata,omitempty"`
	Spec       DeploymentSpec   `json:"spec,omitempty"`
	Status     DeploymentStatus `json:"status,omitempty"`
}

Deployment represents a Kubernetes Deployment object

type DeploymentSpec

type DeploymentSpec struct {
	Replicas int32              `json:"replicas,omitempty"`
	Selector LabelSelector      `json:"selector,omitempty"`
	Template PodTemplateSpec    `json:"template,omitempty"`
	Strategy DeploymentStrategy `json:"strategy,omitempty"`
}

DeploymentSpec represents the spec of a Deployment

type DeploymentStatus

type DeploymentStatus struct {
	Replicas int32 `json:"replicas,omitempty"`
}

DeploymentStatus represents the current status of a deployment

type DeploymentStrategy

type DeploymentStrategy struct {
	Type string `json:"type,omitempty"`
}

DeploymentStrategy describes how to replace existing pods with new ones

type LabelSelector

type LabelSelector struct {
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

LabelSelector represents a label query over a set of resources

type Namespace

type Namespace struct {
	Kind       string                 `json:"kind"`
	APIVersion string                 `json:"apiVersion"`
	Metadata   map[string]interface{} `json:"metadata"`
}

Namespace represents a Kubernetes Namespace object

type ObjectMeta

type ObjectMeta struct {
	Name            string            `json:"name,omitempty"`
	Namespace       string            `json:"namespace,omitempty"`
	Labels          map[string]string `json:"labels,omitempty"`
	Annotations     map[string]string `json:"annotations,omitempty"`
	OwnerReferences []OwnerReference  `json:"ownerReferences,omitempty"`
}

type OwnerReference

type OwnerReference struct {
	APIVersion string `json:"apiVersion,omitempty"`
	Kind       string `json:"kind,omitempty"`
	Name       string `json:"name,omitempty"`
	UID        string `json:"uid,omitempty"`
}

OwnerReference represents an owner reference to another Kubernetes object

type Pod

type Pod struct {
	Kind       string                 `json:"kind"`
	APIVersion string                 `json:"apiVersion"`
	Metadata   map[string]interface{} `json:"metadata"`
	Spec       map[string]interface{} `json:"spec"`
}

Pod represents a Kubernetes Pod object

type PodSpec

type PodSpec struct {
	Containers []Container `json:"containers"`
}

PodSpec is a description of a pod

type PodTemplateSpec

type PodTemplateSpec struct {
	Metadata ObjectMeta `json:"metadata,omitempty"`
	Spec     PodSpec    `json:"spec,omitempty"`
}

PodTemplateSpec describes the data a pod should have when created from a template

type PolicyRule

type PolicyRule struct {
	APIGroups     []string `json:"apiGroups,omitempty"`
	Resources     []string `json:"resources,omitempty"`
	Verbs         []string `json:"verbs,omitempty"`
	ResourceNames []string `json:"resourceNames,omitempty"`
}

type Role

type Role struct {
	Kind       string       `json:"kind,omitempty"`
	APIVersion string       `json:"apiVersion,omitempty"`
	Metadata   ObjectMeta   `json:"metadata,omitempty"`
	Rules      []PolicyRule `json:"rules,omitempty"`
}

Add RBAC structs

Jump to

Keyboard shortcuts

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