Example #1
0
func Register(router *cli.Router) {
	router.RegisterFunc("jb/backups/list", JiffyBoxListBackups, "List all running boxes")
	router.Register("jb/backups/create", &JiffyBoxCreateBackup{}, "Create manual backup from box")
	router.Register("jb/servers/shutdown", &JiffyBoxStopServer{}, "Shutdown Server")
	router.Register("jb/servers/freeze", &JiffyBoxFreezeServer{}, "Freeze Server")
	router.Register("jb/servers/start", &JiffyBoxStartServer{}, "Start Server")
	router.Register("jb/servers/thaw", &JiffyBoxThawServer{}, "Thaw Server")
	router.RegisterFunc("jb/servers/list", JiffyBoxListServersAction, "List Servers")
	router.Register("jb/servers/show", &JiffyBoxShowServersAction{}, "Show Server")
	router.Register("jb/servers/clone", &JiffyBoxCloneServer{}, "Clone Server")
	router.RegisterFunc("jb/plans/list", JiffyBoxListPlansAction, "List Plans")
	router.RegisterFunc("jb/distributions/list", JiffyBoxListDistributionsAction, "List Distributions")
	router.Register("jb/servers/delete", &JiffyBoxDeleteAction{}, "Delete Jiffybox")
	router.Register("jb/servers/create", &JiffyBoxCreateAction{}, "Create new JiffyBox")
}
Example #2
0
func Register(router *cli.Router) {
	router.Register("do/droplet/rename", &RenameDroplet{}, "Rename Droplet")
	router.Register("do/droplet/info", &DescribeDroplet{}, "Describe Droplet")
	router.Register("do/droplet/rebuild", &RebuildDroplet{}, "Rebuild droplet")
	router.RegisterFunc("do/droplet/list", ListDropletsAction, "List active droplets")
	router.Register("do/droplet/create", &CreateDroplet{}, "Create new droplet")
	router.Register("do/droplet/destroy", &DestroyDroplet{}, "Destroy Droplet")
	router.RegisterFunc("do/image/list", ListImagesAction, "List available droplet images")
	router.RegisterFunc("do/key/list", ListKeysAction, "List available ssh keys")
	router.RegisterFunc("do/region/list", ListRegionsAction, "List available droplet regions")
	router.RegisterFunc("do/size/list", ListSizesAction, "List available droplet sizes")
}
Example #3
0
File: ec2.go Project: vito/gocloud
func Register(router *cli.Router) {
	router.Register("aws/ec2/instances/describe", &DescribeInstances{}, "Describe ec2 instances")
	router.Register("aws/ec2/instances/run", &RunInstances{}, "Run ec2 instances")
	router.Register("aws/ec2/images/create", &CreateImage{}, "Create image from instance")
	router.Register("aws/ec2/instances/terminate", &TerminateInstances{}, "Terminate ec2 instances")
	router.Register("aws/ec2/tags/create", &CreateTags{}, "Create Tags")
	router.RegisterFunc("aws/ec2/tags/describe", DescribeTags, "Describe Tags")
	router.Register("aws/ec2/images/describe", &DescribeImages{}, "Describe ec2 Images")
	router.RegisterFunc("aws/ec2/key-pairs/describe", DescribeKeyPairs, "Describe key pairs")
	router.RegisterFunc("aws/ec2/addresses/describe", DescribeAddresses, "Describe Addresses")
	router.RegisterFunc("aws/ec2/security-groups/describe", DescribeSecurityGroups, "Describe Security Groups")
	router.RegisterFunc("aws/ec2/spot-price-history/describe", DescribeSpotPriceHistory, "Describe Spot Price History")
	//router.Register("aws/ec2/prices", &Prices{Region: os.Getenv("AWS_DEFAULT_REGION")}, "EC2 Prices")
}
Example #4
0
func Register(router *cli.Router) {
	router.RegisterFunc("hetzner/servers/list", ListServers, "list servers")
	router.Register("hetzner/servers/describe", &DescribeServer{}, "describe server")
	router.Register("hetzner/servers/rename", &RenameServer{}, "rename server")
}
Example #5
0
func Register(router *cli.Router) {
	router.RegisterFunc("aws/elb/lbs/list", elbListLoadBalancers, "Describe load balancers")
	router.Register("aws/elb/lbs/describe", &elbDescribeLoadBalancer{}, "Describe load balancers")
	router.Register("aws/elb/lbs/deregister", &elbDeregisterInstances{}, "Deregister instances with load balancer")
	router.Register("aws/elb/lbs/register", &elbRegisterInstances{}, "Register instances with load balancer")
}
Example #6
0
func Register(router *cli.Router) {
	router.RegisterFunc("aws/cloudwatch", cloudwatchList, "List Cloudwatch metrics")
}
Example #7
0
func Register(router *cli.Router) {
	router.RegisterFunc("aws/iam/users/get", iamGetUser, "Get user information")
	router.RegisterFunc("aws/iam/users/list", iamListUsers, "List users")
	router.RegisterFunc("aws/iam/account-summary", iamGetAccountSummary, "Get account summary")
	router.RegisterFunc("aws/iam/account-aliases/list", iamListAccountAliases, "List account aliases")
}
Example #8
0
File: main.go Project: vito/gocloud
func Register(router *cli.Router) {
	router.Register("aws/cloudformation/stacks/delete", &StacksDelete{}, "Delete Stack")
	router.Register("aws/cloudformation/stacks/list", &StacksList{}, "List Cloudformation stacks")
	router.Register("aws/cloudformation/stacks/watch", &StacksWatch{}, "Watch Stacks")
	router.Register("aws/cloudformation/stacks/resources", &StackResources{}, "Describe Stack Resources")
}
Example #9
0
func Register(router *cli.Router) {
	router.Register("pb/dcs/describe", &actions.DescribeDataCenterHandler{}, "Describe Data Center")
	router.RegisterFunc("pb/dcs/list", actions.ListAllDataCentersHandler, "List All DataCenters")
	router.Register("pb/servers/start", &actions.StartServer{}, "Start Server")
	router.Register("pb/servers/stop", &actions.StopServer{}, "Stop Server")
	router.Register("pb/servers/delete", &actions.DeleteServer{}, "Delete Server")
	router.RegisterFunc("pb/servers/list", actions.ListAllServersHandler, "List All Servers")
	router.Register("pb/servers/create", &actions.CreateServer{}, "Create Server")
	router.Register("pb/storages/delete", &actions.DeleteStorage{}, "Delete Storage")
	router.Register("pb/storages/create", &actions.CreateStorage{}, "Create Storage")
	router.RegisterFunc("pb/storages/list", actions.ListAllStorages, "List All Storages")
	router.RegisterFunc("pb/snapshots/list", actions.ListAllSnapshotsHandler, "List all snapshots")
	router.Register("pb/snapshots/rollback", &actions.RollbackSnapshotHandler{}, "Rollback Snapshot")
	router.RegisterFunc("pb/images/list", actions.ListAllImagesHandler, "List images")
}
Example #10
0
func Register(router *cli.Router) {
	router.RegisterFunc("aws/route53/hosted-zones/list", route53ListHostedZones, "List Hosted Zones")
	router.Register("aws/route53/rrs/list", &route53ListResourceRecordSet{}, "List Resource Record Set")
}