addWorkloadFileEditor

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 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 ComponentAddWorkloadFileEditor

type ComponentAddWorkloadFileEditor struct {
	base.DefaultProvider

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

func (*ComponentAddWorkloadFileEditor) CreateWorkload

func (e *ComponentAddWorkloadFileEditor) CreateWorkload() error

func (*ComponentAddWorkloadFileEditor) GenComponentState

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

func (*ComponentAddWorkloadFileEditor) Init

func (*ComponentAddWorkloadFileEditor) InitComponent

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

func (*ComponentAddWorkloadFileEditor) Render

func (*ComponentAddWorkloadFileEditor) RenderFile

func (e *ComponentAddWorkloadFileEditor) RenderFile() error

func (*ComponentAddWorkloadFileEditor) SetComponentValue

func (e *ComponentAddWorkloadFileEditor) SetComponentValue()

func (*ComponentAddWorkloadFileEditor) Transfer

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"`
	WorkloadKind string `json:"workloadKind,omitempty"`
	Values       Values `json:"values,omitempty"`
	Value        string `json:"value,omitempty"`
}

type Values

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

Jump to

Keyboard shortcuts

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