Skip to content

Commit

Permalink
Add remaining configstore commands
Browse files Browse the repository at this point in the history
  • Loading branch information
awilliams-fastly committed Feb 23, 2023
1 parent ad37409 commit a76d3a7
Show file tree
Hide file tree
Showing 11 changed files with 833 additions and 4 deletions.
5 changes: 5 additions & 0 deletions pkg/api/interface.go
Expand Up @@ -331,6 +331,11 @@ type Interface interface {

CreateConfigStore(i *fastly.CreateConfigStoreInput) (*fastly.ConfigStore, error)
DeleteConfigStore(i *fastly.DeleteConfigStoreInput) error
GetConfigStore(i *fastly.GetConfigStoreInput) (*fastly.ConfigStore, error)
GetConfigStoreMetadata(i *fastly.GetConfigStoreMetadataInput) (*fastly.ConfigStoreMetadata, error)
ListConfigStores() ([]*fastly.ConfigStore, error)
ListConfigStoreServices(i *fastly.ListConfigStoreServicesInput) ([]*fastly.Service, error)
UpdateConfigStore(i *fastly.UpdateConfigStoreInput) (*fastly.ConfigStore, error)

CreateObjectStore(i *fastly.CreateObjectStoreInput) (*fastly.ObjectStore, error)
ListObjectStores(i *fastly.ListObjectStoresInput) (*fastly.ListObjectStoresResponse, error)
Expand Down
8 changes: 8 additions & 0 deletions pkg/app/commands.go
Expand Up @@ -119,6 +119,10 @@ func defineCommands(
configstoreCmdRoot := configstore.NewRootCommand(app, g)
configstoreCreate := configstore.NewCreateCommand(configstoreCmdRoot.CmdClause, g, m)
configstoreDelete := configstore.NewDeleteCommand(configstoreCmdRoot.CmdClause, g, m)
configstoreDescribe := configstore.NewDescribeCommand(configstoreCmdRoot.CmdClause, g, m)
configstoreList := configstore.NewListCommand(configstoreCmdRoot.CmdClause, g, m)
configstoreListServices := configstore.NewListServicesCommand(configstoreCmdRoot.CmdClause, g, m)
configstoreUpdate := configstore.NewUpdateCommand(configstoreCmdRoot.CmdClause, g, m)
dictionaryCmdRoot := dictionary.NewRootCommand(app, g)
dictionaryCreate := dictionary.NewCreateCommand(dictionaryCmdRoot.CmdClause, g, m)
dictionaryDelete := dictionary.NewDeleteCommand(dictionaryCmdRoot.CmdClause, g, m)
Expand Down Expand Up @@ -454,6 +458,10 @@ func defineCommands(
configstoreCmdRoot,
configstoreCreate,
configstoreDelete,
configstoreDescribe,
configstoreList,
configstoreListServices,
configstoreUpdate,
dictionaryCmdRoot,
dictionaryCreate,
dictionaryDelete,
Expand Down
1 change: 1 addition & 0 deletions pkg/app/run_test.go
Expand Up @@ -63,6 +63,7 @@ auth-token
backend
compute
config
config-store
dictionary
dictionary-entry
domain
Expand Down

0 comments on commit a76d3a7

Please sign in to comment.