common

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditRequest

type EditRequest struct {
	HostName string `cli:",category=diskedit,order=10" json:",omitempty"`
	Password string `cli:",category=diskedit,order=20" json:",omitempty"`

	IPAddress      string `cli:"ip-address,category=diskedit,order=30" json:",omitempty"`
	NetworkMaskLen int    `cli:"netmask,aliases=network-mask-len,category=diskedit,order=31" json:",omitempty"`
	DefaultRoute   string `cli:"gateway,aliases=default-route,category=diskedit,order=32" json:",omitempty"`

	DisablePWAuth       bool `cli:"disable-pw-auth,category=diskedit,order=40" json:",omitempty"`
	EnableDHCP          bool `cli:"enable-dhcp,category=diskedit,order=50" json:",omitempty"`
	ChangePartitionUUID bool `cli:"change-partition-uuid,category=diskedit,order=60" json:",omitempty"`

	SSHKeys            []string   `cli:"ssh-keys,category=diskedit,order=70" json:",omitempty"`
	SSHKeyIDs          []types.ID `cli:"ssh-key-ids,category=diskedit,order=71" json:",omitempty"`
	IsSSHKeysEphemeral bool       `cli:"make-ssh-keys-ephemeral,category=diskedit,order=72" json:",omitempty"`

	NoteIDs          []types.ID           `cli:"note-ids,category=diskedit,order=80" mapconv:"-" json:",omitempty"`
	NotesData        string               `cli:"notes,category=diskedit,order=81" mapconv:"-" json:"-"`
	IsNotesEphemeral bool                 `cli:"make-notes-ephemeral,category=diskedit,order=82" json:",omitempty"`
	Notes            []*iaas.DiskEditNote `cli:"-" json:",omitempty"` // --parametersでファイルからパラメータ指定する場合向け
}

func (*EditRequest) Customize

func (p *EditRequest) Customize(_ cli.Context) error

Customize パラメータ変換処理

func (*EditRequest) Validate

func (p *EditRequest) Validate() error

Jump to

Keyboard shortcuts

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