regclient

package
v0.0.0-...-2bb1cf3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoTemplateAdd

func DoTemplateAdd(kv []string) error

DoTemplateAdd

func DoTemplateDel

func DoTemplateDel(kv []string) error

DoTemplateDel

func DoTemplateEmpty

func DoTemplateEmpty() error

DoTemplateEmpty generates to os.Stdout a JSON representation of a valid but zeroed CityTemplate

func DoTemplateSet

func DoTemplateSet(kv []string) error

DoTemplateSet generates to os.Stdout a JSON representation of the CityTemplate loaded from os.Stdin with some fields altered. @param kv must be a sequence of string pairs, with the second value being an encoded integer

Types

type ClientCLI

type ClientCLI struct{}

ClientCLI gathers the actions destined to be exposed at the CLI, to manage a region service.

func (*ClientCLI) DoCityBuild

func (cli *ClientCLI) DoCityBuild(ctx context.Context, regID, cityStrID, bStrID string) error

func (*ClientCLI) DoCityDetail

func (cli *ClientCLI) DoCityDetail(ctx context.Context, reg, cityStrID string) error

func (*ClientCLI) DoCityShow

func (cli *ClientCLI) DoCityShow(ctx context.Context, regID, cityStrID string) error

func (*ClientCLI) DoCityShow2

func (cli *ClientCLI) DoCityShow2(ctx context.Context, regID, cityStrID string) error

func (*ClientCLI) DoCityStudy

func (cli *ClientCLI) DoCityStudy(ctx context.Context, regID, cityStrID, sStrID string) error

func (*ClientCLI) DoCityTrain

func (cli *ClientCLI) DoCityTrain(ctx context.Context, regID, cityStrID, uStrID string) error

func (*ClientCLI) DoLifecyleAssign

func (cli *ClientCLI) DoLifecyleAssign(ctx context.Context, reg, cityStrID, user string) error

func (*ClientCLI) DoLifecyleConfigure

func (cli *ClientCLI) DoLifecyleConfigure(ctx context.Context, reg, cityStrID, model string) error

func (*ClientCLI) DoLifecyleDismiss

func (cli *ClientCLI) DoLifecyleDismiss(ctx context.Context, reg, cityStrID string) error

func (*ClientCLI) DoLifecyleReset

func (cli *ClientCLI) DoLifecyleReset(ctx context.Context, reg, cityStrID string) error

func (*ClientCLI) DoLifecyleResume

func (cli *ClientCLI) DoLifecyleResume(ctx context.Context, reg, cityStrID string) error

func (*ClientCLI) DoLifecyleSuspend

func (cli *ClientCLI) DoLifecyleSuspend(ctx context.Context, reg, cityStrID string) error

func (*ClientCLI) DoRegionCities

func (cli *ClientCLI) DoRegionCities(ctx context.Context, regionID string, marker string) error

DoRegionCities

func (*ClientCLI) DoRegionCreate

func (cli *ClientCLI) DoRegionCreate(ctx context.Context, regID, mapID string) error

DoRegionCreate triggers the synchronous creation of a region with the given name, modeled on the named map.

func (*ClientCLI) DoRegionGetBuildings

func (cli *ClientCLI) DoRegionGetBuildings(ctx context.Context, reg string) error

func (*ClientCLI) DoRegionGetSkills

func (cli *ClientCLI) DoRegionGetSkills(ctx context.Context, reg string) error

func (*ClientCLI) DoRegionGetUnits

func (cli *ClientCLI) DoRegionGetUnits(ctx context.Context, reg string) error

func (*ClientCLI) DoRegionList

func (cli *ClientCLI) DoRegionList(ctx context.Context, marker string) error

DoRegionList dumps to os.Stdout a JSON stream of the known regions, sorted by name

func (*ClientCLI) DoRegionRoundMovement

func (cli *ClientCLI) DoRegionRoundMovement(ctx context.Context, reg string) error

DoRegionRoundMovement triggers one round of armies movement on all the cities of the named region

func (*ClientCLI) DoRegionRoundProduction

func (cli *ClientCLI) DoRegionRoundProduction(ctx context.Context, reg string) error

DoRegionRoundProduction triggers the production of resources on all the cities of the named region

func (*ClientCLI) DoRegionStatsGet

func (cli *ClientCLI) DoRegionStatsGet(ctx context.Context, reg string) error

DoRegionStatsGet triggers a refresh of the stats (of the Region with the given ID) by the pointed region service

func (*ClientCLI) DoRegionStatsPush

func (cli *ClientCLI) DoRegionStatsPush(ctx context.Context, reg string) error

DoRegionStatsPush triggers a refresh of the stats (of the Region with the given ID) by the pointed region service

func (*ClientCLI) DoTemplateCreate

func (cli *ClientCLI) DoTemplateCreate(ctx context.Context, reg string) error

func (*ClientCLI) DoTemplateDelete

func (cli *ClientCLI) DoTemplateDelete(ctx context.Context, reg, tpl string) error

func (*ClientCLI) DoTemplateList

func (cli *ClientCLI) DoTemplateList(ctx context.Context, reg, marker string) error

func (*ClientCLI) DoTemplateUpdate

func (cli *ClientCLI) DoTemplateUpdate(ctx context.Context, reg, tplID string) error

Jump to

Keyboard shortcuts

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