restartButton

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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentRestartButton

type ComponentRestartButton struct {
	base.DefaultProvider

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

func (*ComponentRestartButton) GenComponentState

func (b *ComponentRestartButton) GenComponentState(component *cptype.Component) error

func (*ComponentRestartButton) Init

func (*ComponentRestartButton) InitComponent

func (b *ComponentRestartButton) InitComponent(ctx context.Context)

func (*ComponentRestartButton) Render

func (*ComponentRestartButton) RestartWorkload

func (b *ComponentRestartButton) RestartWorkload() error

func (*ComponentRestartButton) SetComponentValue

func (b *ComponentRestartButton) SetComponentValue()

func (*ComponentRestartButton) Transfer

func (b *ComponentRestartButton) Transfer(component *cptype.Component)

type Operation

type Operation struct {
	Key         string `json:"key,omitempty"`
	Reload      bool   `json:"reload"`
	Confirm     string `json:"confirm,omitempty"`
	Disabled    bool   `json:"disabled"`
	DisabledTip string `json:"disabledTip,omitempty"`
}

type Props

type Props struct {
	Type     string   `json:"type"`
	Text     string   `json:"text"`
	TipProps TipProps `json:"tipProps"`
}

type State

type State struct {
	ClusterName string `json:"clusterName,omitempty"`
	WorkloadID  string `json:"workloadId,omitempty"`
}

type TipProps

type TipProps struct {
	Placement string `json:"placement,omitempty"`
}

Jump to

Keyboard shortcuts

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