clusterinfo

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package clusterinfo GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithClusterInfo

func ContextWithClusterInfo(ctx context.Context, n *ClusterInfo) context.Context

Types

type ClusterInfo

type ClusterInfo struct {
	Nodes  []*ClusterNode `json:"nodes"`
	Images []string       `json:"-"`
}

func FromContext

func FromContext(ctx context.Context) *ClusterInfo

func (ClusterInfo) RuntimeDoc

func (v ClusterInfo) RuntimeDoc(names ...string) ([]string, bool)

func (ClusterInfo) SupportedPlatforms

func (v ClusterInfo) SupportedPlatforms() []string

type ClusterNode

type ClusterNode struct {
	corev1.NodeSystemInfo

	Role       string `json:"role"`
	Hostname   string `json:"hostname"`
	InternalIP string `json:"internalIP"`
	ExternalIP string `json:"externalIP"`
}

func (ClusterNode) RuntimeDoc

func (v ClusterNode) RuntimeDoc(names ...string) ([]string, bool)

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (*Provider) Init

func (n *Provider) Init(ctx context.Context) error

func (*Provider) InjectContext

func (n *Provider) InjectContext(ctx context.Context) context.Context

Jump to

Keyboard shortcuts

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