Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor interface { RootExecutor ServiceExecutor MarketplaceExecutor WalletExecutor }
Executor is an interface that keeps all commands interfaces.
type MarketplaceExecutor ¶ added in v0.9.0
type MarketplaceExecutor interface { UploadSource(path string) (deployment provider.MarketplaceDeployedSource, err error) PreparePublishServiceVersion(service provider.MarketplaceManifestServiceData, from string) (provider.Transaction, error) PublishPublishServiceVersion(signedTransaction string) (sid, versionHash, manifest, manifestProtocol string, err error) PrepareCreateServiceOffer(sid string, price string, duration string, from string) (provider.Transaction, error) PublishCreateServiceOffer(signedTransaction string) (sid, offerIndex, price, duration string, err error) PreparePurchase(sid, offerIndex, from string) ([]provider.Transaction, error) PublishPurchase(signedTransactions []string) (sid, offerIndex, purchaser, price, duration string, expire time.Time, err error) GetService(sid string) (provider.MarketplaceService, error) }
MarketplaceExecutor is an interface that handles marketplace commands.
type RootExecutor ¶
type RootExecutor interface { Start() error Stop() error Status() (container.StatusType, error) Logs() (io.ReadCloser, error) }
RootExecutor is an interface that handles core commands.
type ServiceExecutor ¶
type ServiceExecutor interface { ServiceByID(id string) (*coreapi.Service, error) ServiceDeleteAll(deleteData bool) error ServiceDelete(deleteData bool, ids ...string) error ServiceDeploy(path string, env map[string]string, statuses chan provider.DeployStatus) (sid string, hash string, validationError, err error) ServiceListenEvents(id, eventFilter string) (chan *coreapi.EventData, chan error, error) ServiceListenResults(id, taskFilter, outputFilter string, tagFilters []string) (chan *coreapi.ResultData, chan error, error) ServiceLogs(id string, dependencies ...string) (logs []*provider.Log, closer func(), errC chan error, err error) ServiceExecuteTask(id, taskKey, inputData string, tags []string) (string, error) ServiceStart(id string) error ServiceStop(id string) error ServiceValidate(path string) (string, error) ServiceGenerateDocs(path string) error ServiceList() ([]*coreapi.Service, error) ServiceInitTemplateList() ([]*servicetemplate.Template, error) ServiceInitDownloadTemplate(t *servicetemplate.Template, dst string) error }
ServiceExecutor is an interface that handles services commands.
type WalletExecutor ¶ added in v0.9.0
type WalletExecutor interface { List() ([]string, error) Create(passphrase string) (string, error) Delete(address string, passphrase string) (string, error) Export(address string, passphrase string) (provider.WalletEncryptedKeyJSONV3, error) Import(account provider.WalletEncryptedKeyJSONV3, passphrase string) (string, error) ImportFromPrivateKey(privateKey string, passphrase string) (string, error) Sign(address string, passphrase string, transaction provider.Transaction) (string, error) }
WalletExecutor is an interface that handles wallet commands.
Source Files
¶
- commands.go
- custom_flags.go
- logs.go
- marketplace_create_offer.go
- marketplace_publish.go
- marketplace_purchase.go
- marketplace_root.go
- root.go
- service_delete.go
- service_deploy.go
- service_detail.go
- service_dev.go
- service_docs.go
- service_execute.go
- service_init.go
- service_list.go
- service_logs.go
- service_root.go
- service_start.go
- service_stop.go
- service_validate.go
- start.go
- status.go
- stop.go
- survey.go
- wallet_create.go
- wallet_delete.go
- wallet_export.go
- wallet_import.go
- wallet_list.go
- wallet_root.go
Click to show internal directories.
Click to hide internal directories.