subnets

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.Command{
	Name:  "subnet",
	Usage: "GCloud subnets API",
	Subcommands: []*cli.Command{
		&subnetListCommand,
		&subnetGetCommand,
		&subnetDeleteCommand,
		&subnetCreateCommand,
		&subnetUpdateCommand,
		{
			Name:  "metadata",
			Usage: "Network metadata",
			Subcommands: []*cli.Command{
				cmeta.NewMetadataListCommand(
					client.NewSubnetClientV1,
					"Get subnet metadata",
					"<subnet_id>",
					"subnet_id is mandatory argument",
				),
				cmeta.NewMetadataGetCommand(
					client.NewSubnetClientV1,
					"Show subnet metadata by key",
					"<subnet_id>",
					"subnet_id is mandatory argument",
				),
				cmeta.NewMetadataDeleteCommand(
					client.NewSubnetClientV1,
					"Delete subnet metadata by key",
					"<subnet_id>",
					"subnet_id is mandatory argument",
				),
				cmeta.NewMetadataCreateCommand(
					client.NewSubnetClientV1,
					"Create subnet metadata. It would update existing keys",
					"<subnet_id>",
					"subnet_id is mandatory argument",
				),
				cmeta.NewMetadataUpdateCommand(
					client.NewSubnetClientV1,
					"Update subnet metadata. It overriding existing records",
					"<subnet_id>",
					"subnet_id is mandatory argument",
				),
				cmeta.NewMetadataReplaceCommand(
					client.NewSubnetClientV1,
					"Replace subnet metadata. It replace existing records",
					"<subnet_id>",
					"subnet_id is mandatory argument",
				),
			},
		},
	},
}

Functions

func GetHostRoutes added in v0.4.1

func GetHostRoutes(c *cli.Context) ([]subnets.HostRoute, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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