addPodFileEditor

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentAddPodFileEditor

type ComponentAddPodFileEditor struct {
	base.DefaultProvider

	Type       string                 `json:"type,omitempty"`
	Props      Props                  `json:"props"`
	State      State                  `json:"state"`
	Operations map[string]interface{} `json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentAddPodFileEditor) CreatePod

func (e *ComponentAddPodFileEditor) CreatePod() error

func (*ComponentAddPodFileEditor) GenComponentState

func (e *ComponentAddPodFileEditor) GenComponentState(c *cptype.Component) error

func (*ComponentAddPodFileEditor) Init

func (*ComponentAddPodFileEditor) InitComponent

func (e *ComponentAddPodFileEditor) InitComponent(ctx context.Context)

func (*ComponentAddPodFileEditor) Render

func (*ComponentAddPodFileEditor) RenderFile

func (e *ComponentAddPodFileEditor) RenderFile() error

func (*ComponentAddPodFileEditor) SetComponentValue

func (e *ComponentAddPodFileEditor) SetComponentValue()

func (*ComponentAddPodFileEditor) Transfer

func (e *ComponentAddPodFileEditor) Transfer(c *cptype.Component)

type Operation

type Operation struct {
	Key        string `json:"key,omitempty"`
	Reload     bool   `json:"reload"`
	SuccessMsg string `json:"successMsg,omitempty"`
}

type Props

type Props struct {
	Bordered     bool     `json:"bordered"`
	FileValidate []string `json:"fileValidate,omitempty"`
	MinLines     int      `json:"minLines"`
}

type State

type State struct {
	ClusterName string `json:"clusterName,omitempty"`
	Value       string `json:"value,omitempty"`
	Values      Values `json:"values,omitempty"`
}

type Values

type Values struct {
	Namespace string `json:"namespace,omitempty"`
}

Jump to

Keyboard shortcuts

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