Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddCachingServiceCmd = &subcommands.Command{ UsageLine: "cachingservice", ShortDesc: "Add CachingService", LongDesc: cmdhelp.AddCachingServiceLongDesc, CommandRun: func() subcommands.CommandRun { c := &addCachingService{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.CachingServiceFileText) c.Flags.StringVar(&c.name, "name", "", "name of the CachingService") c.Flags.IntVar(&c.port, "port", defaultCachingServicePort, "port number of the CachingService") c.Flags.Var(utils.CSVString(&c.subnets), "subnets", "comma separated subnet list which this CachingService serves/supports") c.Flags.Var(utils.CSVString(&c.zones), "zones", "comma separated zone list which this CachingService serves/supports") c.Flags.StringVar(&c.primary, "primary", "", "primary node ip of the CachingService") c.Flags.StringVar(&c.secondary, "secondary", "", "secondary node ip of the CachingService") c.Flags.StringVar(&c.state, "state", "", cmdhelp.StateHelp) c.Flags.StringVar(&c.description, "desc", "", "description for the CachingService") return c }, }
AddCachingServiceCmd add CachingService to the system.
View Source
var DeleteCachingServiceCmd = &subcommands.Command{ UsageLine: "cachingservice", ShortDesc: "Delete CachingService", LongDesc: `Delete CachingService. Example: shivas delete cachingservice {CachingService Name} Deletes the given CachingService.`, CommandRun: func() subcommands.CommandRun { c := &deleteCachingService{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) return c }, }
DeleteCachingServiceCmd delete CachingService by given name.
View Source
var GetCachingServiceCmd = &subcommands.Command{ UsageLine: "cachingservice ...", ShortDesc: "Get CachingService details by filters", LongDesc: `Get CachingService details by filters. Example: shivas get cachingservice {name1} {name2} shivas get cachingservice -state serving shivas get cachingservice Gets the CachingService and prints the output in the user-specified format.`, CommandRun: func() subcommands.CommandRun { c := &getCachingService{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.outputFlags.Register(&c.Flags) c.Flags.IntVar(&c.pageSize, "n", 0, cmdhelp.ListPageSizeDesc) c.Flags.BoolVar(&c.keysOnly, "keys", false, cmdhelp.KeysOnlyText) c.Flags.Var(flag.StringSlice(&c.states), "state", "Name(s) of a state to filter by. Can be specified multiple times. "+cmdhelp.StateFilterHelpText) c.Flags.Var(flag.StringSlice(&c.subnets), "subnets", "Name(s) of a subnet to filter by. Can be specified multiple times.") c.Flags.Var(flag.StringSlice(&c.zones), "zones", "Name(s) of a zone to filter by. Can be specified multiple times. "+cmdhelp.ZoneFilterHelpText) return c }, }
GetCachingServiceCmd get chrome platform by given name.
View Source
var UpdateCachingServiceCmd = &subcommands.Command{ UsageLine: "CachingService [Options...]", ShortDesc: "Update a CachingService", LongDesc: cmdhelp.UpdateCachingServiceLongDesc, CommandRun: func() subcommands.CommandRun { c := &updateCachingService{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.CachingServiceUpdateFileText) c.Flags.StringVar(&c.name, "name", "", "name of the CachingService") c.Flags.IntVar(&c.port, "port", defaultCachingServicePort, "port number of the CachingService. "+"To set it to default port 8082, enter -1('-port -1').") c.Flags.Var(utils.CSVString(&c.zones), "zones", "append/clear comma separated zone list which this CachingService serves/supports. "+cmdhelp.ClearFieldHelpText) c.Flags.Var(utils.CSVString(&c.removeZones), "zones-to-remove", "remove comma separated zone list.") c.Flags.Var(utils.CSVString(&c.subnets), "subnets", "append/clear comma separated subnet list which this CachingService serves/supports. "+cmdhelp.ClearFieldHelpText) c.Flags.Var(utils.CSVString(&c.removeSubnets), "subnets-to-remove", "remove comma separated subnet list.") c.Flags.StringVar(&c.primary, "primary", "", "primary node ip of the CachingService. "+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.secondary, "secondary", "", "secondary node ip of the CachingService. "+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.state, "state", "", cmdhelp.StateHelp) c.Flags.StringVar(&c.description, "desc", "", "description for the CachingService. "+cmdhelp.ClearFieldHelpText) return c }, }
UpdateCachingServiceCmd Update CachingService by given name.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.