kubetool

package
v0.0.177 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_framework_kubernetes_kubetool_hostenv_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ContextualEnv

type ContextualEnv struct {
	Namespace       string
	CanSetNamespace bool // `ns` can set the namespace contextually.

	Context *KubernetesToolContext
}

func FromRequest

func FromRequest(r perNode) (*ContextualEnv, error)

FromRequest is meant to be used by provisioning tools (and thus can os.Exit).

func MustNamespace

func MustNamespace(r perNode) (*ContextualEnv, error)

type KubernetesEnv

type KubernetesEnv struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*KubernetesEnv) Descriptor deprecated

func (*KubernetesEnv) Descriptor() ([]byte, []int)

Deprecated: Use KubernetesEnv.ProtoReflect.Descriptor instead.

func (*KubernetesEnv) GetNamespace

func (x *KubernetesEnv) GetNamespace() string

func (*KubernetesEnv) ProtoMessage

func (*KubernetesEnv) ProtoMessage()

func (*KubernetesEnv) ProtoReflect

func (x *KubernetesEnv) ProtoReflect() protoreflect.Message

func (*KubernetesEnv) Reset

func (x *KubernetesEnv) Reset()

func (*KubernetesEnv) String

func (x *KubernetesEnv) String() string

type KubernetesToolContext

type KubernetesToolContext struct {
	Namespace           string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	CanSetNamespace     bool   `protobuf:"varint,2,opt,name=can_set_namespace,json=canSetNamespace,proto3" json:"can_set_namespace,omitempty"`
	HasApplyRoleBinding bool   `protobuf:"varint,3,opt,name=has_apply_role_binding,json=hasApplyRoleBinding,proto3" json:"has_apply_role_binding,omitempty"`
	// contains filtered or unexported fields
}

func (*KubernetesToolContext) Descriptor deprecated

func (*KubernetesToolContext) Descriptor() ([]byte, []int)

Deprecated: Use KubernetesToolContext.ProtoReflect.Descriptor instead.

func (*KubernetesToolContext) GetCanSetNamespace

func (x *KubernetesToolContext) GetCanSetNamespace() bool

func (*KubernetesToolContext) GetHasApplyRoleBinding

func (x *KubernetesToolContext) GetHasApplyRoleBinding() bool

func (*KubernetesToolContext) GetNamespace

func (x *KubernetesToolContext) GetNamespace() string

func (*KubernetesToolContext) ProtoMessage

func (*KubernetesToolContext) ProtoMessage()

func (*KubernetesToolContext) ProtoReflect

func (x *KubernetesToolContext) ProtoReflect() protoreflect.Message

func (*KubernetesToolContext) Reset

func (x *KubernetesToolContext) Reset()

func (*KubernetesToolContext) String

func (x *KubernetesToolContext) String() string

Jump to

Keyboard shortcuts

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