file_shares

package
v0.6.28 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.Command{
	Name:  "share",
	Usage: "GCloud file share API",
	Subcommands: []*cli.Command{
		&fileShareListCommand,
		&fileShareGetCommand,
		&fileShareDeleteCommand,
		&fileShareCreateCommand,
		&fileShareUpdateCommand,
		&fileShareResizeCommand,
		{
			Name:     "metadata",
			Usage:    "File share metadata",
			Category: "file share metadata",
			Subcommands: []*cli.Command{
				cmeta.NewMetadataListCommand(
					client.NewFileShareClientV1,
					"Get file share metadata",
					"<share_id>",
					"share_id is mandatory argument",
				),
				cmeta.NewMetadataGetCommand(
					client.NewFileShareClientV1,
					"Show file share metadata by key",
					"<share_id>",
					"share_id is mandatory argument",
				),
				cmeta.NewMetadataDeleteCommand(
					client.NewFileShareClientV1,
					"Delete file share metadata by key",
					"<share_id>",
					"share_id is mandatory argument",
				),
				cmeta.NewMetadataCreateCommand(
					client.NewFileShareClientV1,
					"Create file share metadata. It would update existing keys",
					"<share_id>",
					"share_id is mandatory argument",
				),
				cmeta.NewMetadataUpdateCommand(
					client.NewFileShareClientV1,
					"Update file share metadata. It overriding existing records",
					"<share_id>",
					"share_id is mandatory argument",
				),
				cmeta.NewMetadataReplaceCommand(
					client.NewFileShareClientV1,
					"Replace share metadata. It replace existing records",
					"<share_id>",
					"share_id is mandatory argument",
				),
			},
		},
		{
			Name:     "rule",
			Usage:    "File share access rule",
			Category: "file share access rule",
			Subcommands: []*cli.Command{
				&fileShareAccessRuleListCommand,
				&fileShareAccessRuleCreateCommand,
				&fileShareAccessRuleDeleteCommand,
			},
		},
	},
}

Functions

func GetSecondStringArg

func GetSecondStringArg(c *cli.Context, errorText string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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