ais

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.Command{
	Name:  "ai",
	Usage: "GCloud AI API",
	Subcommands: []*cli.Command{
		&aiClusterGetCommand,
		&aiClustersListCommand,
		&aiClusterCreateCommand,
		&aiClusterDeleteCommand,
		&aiClusterPowerCycleCommand,
		&aiClusterRebootCommand,
		&aiClusterSuspendCommand,
		&aiClusterResumeCommand,
		&aiClusterResizeCommand,
		{
			Name:     "interface",
			Usage:    "AI cluster interface action",
			Category: "cluster",
			Subcommands: []*cli.Command{
				&aiClusterListInterfacesCommand,
				&aiClusterAttachInterfacesCommand,
				&aiClusterDetachInterfacesCommand,
			},
		},
		{
			Name:     "port",
			Usage:    "AI cluster port action",
			Category: "cluster",
			Subcommands: []*cli.Command{
				&aiClusterListPortsCommand,
			},
		},
		{
			Name:     "instance",
			Usage:    "AI instances action",
			Category: "cluster",
			Subcommands: []*cli.Command{
				&aiInstancePowerCycleCommand,
				&aiInstanceRebootCommand,
				&aiInstanceGetConsoleCommand,
			},
		},
		{
			Name:     "securitygroup",
			Usage:    "AI cluster security groups",
			Category: "cluster",
			Subcommands: []*cli.Command{
				&aiClusterAssignSecurityGroupsCommand,
				&aiClusterUnAssignSecurityGroupsCommand,
			},
		},
		{
			Name:     "image",
			Usage:    "AI cluster available images",
			Category: "cluster",
			Subcommands: []*cli.Command{
				&aiClusterAvailableImagesCommand,
			},
		},
		{
			Name:     "flavor",
			Usage:    "AI cluster available flavors",
			Category: "cluster",
			Subcommands: []*cli.Command{
				&aiClusterAvailableFlavorsCommand,
			},
		},
		{
			Name:     "metadata",
			Usage:    "AI cluster metadata",
			Category: "AI cluster metadata",
			Subcommands: []*cli.Command{
				cmeta.NewMetadataListCommand(
					client.NewAIClusterClientV1,
					"Get AI cluster metadata",
					"<cluster_id>",
					"cluster_id is mandatory argument",
				),
				cmeta.NewMetadataGetCommand(
					client2.NewAIClusterClientV2,
					"Show AI cluster metadata by key",
					"<cluster_id>",
					"cluster_id is mandatory argument",
				),
				cmeta.NewMetadataDeleteCommand(
					client2.NewAIClusterClientV2,
					"Delete AI cluster metadata by key",
					"<cluster_id>",
					"cluster_id is mandatory argument",
				),
				cmeta.NewMetadataCreateCommand(
					client2.NewAIClusterClientV2,
					"Create AI cluster metadata. It would update existing keys",
					"<cluster_id>",
					"cluster_id is mandatory argument",
				),
				cmeta.NewMetadataUpdateCommand(
					client2.NewAIClusterClientV2,
					"Update AI cluster metadata. It overriding existing records",
					"<cluster_id>",
					"cluster_id is mandatory argument",
				),
				cmeta.NewMetadataReplaceCommand(
					client2.NewAIClusterClientV2,
					"Replace AI cluster metadata. It replace existing records",
					"<cluster_id>",
					"cluster_id is mandatory argument",
				),
			},
		},
	},
}

Functions

func StringSliceToMetadata

func StringSliceToMetadata(slice []string) (map[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