예제 #1
0
파일: commands.go 프로젝트: mrhillsman/rack
// Get returns all the commands allowed for a `networks` request.
func Get() []cli.Command {
	return []cli.Command{
		{
			Name:        "network",
			Usage:       "Used for Cloud Networks network operations",
			Subcommands: networkcommands.Get(),
		},
		{
			Name:        "subnet",
			Usage:       "Used for Cloud Networks subnet operations",
			Subcommands: subnetcommands.Get(),
		},
		{
			Name:        "port",
			Usage:       "Used for Cloud Networks port operations",
			Subcommands: portcommands.Get(),
		},
		{
			Name:        "security-group",
			Usage:       "Used for Cloud Networks security group operations",
			Subcommands: securitygroupcommands.Get(),
		},
		{
			Name:        "security-group-rule",
			Usage:       "Used for Cloud Networks security group rule operations",
			Subcommands: securitygrouprulecommands.Get(),
		},
	}
}
예제 #2
0
파일: commands.go 프로젝트: hdansou/rack
// Get returns all the commands allowed for a `networks` request.
func Get() []cli.Command {
	return []cli.Command{
		{
			Name:        "network",
			Usage:       "Software-defined networks used by servers.",
			Subcommands: networkcommands.Get(),
		},
		{
			Name:        "subnet",
			Usage:       "Allocate IP address blocks, gateways, DNS servers, and host routes to networks.",
			Subcommands: subnetcommands.Get(),
		},
		{
			Name:        "port",
			Usage:       "Virtual switch ports on logical network switches.",
			Subcommands: portcommands.Get(),
		},
		{
			Name:        "security-group",
			Usage:       "Collections of rules for network traffic.",
			Subcommands: securitygroupcommands.Get(),
		},
		{
			Name:        "security-group-rule",
			Usage:       "Define network ingress and egress rules.",
			Subcommands: securitygrouprulecommands.Get(),
		},
	}
}