pod

package
v0.0.0-...-cae2324 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pod

type Pod struct {
	Name      string `json:"name"`
	Selector  string `json:"selector"`
	Container *types.ContainerJSON
	ID        string
	Spec      api.PodSpec
}

Name will be different for every pod. Use some unique name-gen library Selector will be the one for which we create replicas ID is the container ID inside of docker

func (*Pod) IsPodRunning

func (p *Pod) IsPodRunning(cli *client.Client) (bool, error)

type PodRecipe

type PodRecipe struct {
	Name     string `json:"name"`
	Selector string `json:"selector"`
	Image    string `json:"image"`
	Spec     api.PodSpec
	Action   string `json:"action"`
	Port     string `json:"port"`
}

Jump to

Keyboard shortcuts

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