Documentation ¶
Index ¶
- Constants
- type ConfigStoreAPI
- type ConfigStoreService
- func (s *ConfigStoreService) DeleteSetting(input *DeleteSettingInput) (output *models.ApiResult, resp *http.Response, err error)
- func (s *ConfigStoreService) DeleteSettingWithContext(ctx context.Context, input *DeleteSettingInput) (output *models.ApiResult, resp *http.Response, err error)
- func (s *ConfigStoreService) GetSetting(input *GetSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error)
- func (s *ConfigStoreService) GetSettingWithContext(ctx context.Context, input *GetSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error)
- func (s *ConfigStoreService) GetSettings(input *GetSettingsInput) (output *models.ConfigStoreBundle, resp *http.Response, err error)
- func (s *ConfigStoreService) GetSettingsWithContext(ctx context.Context, input *GetSettingsInput) (output *models.ConfigStoreBundle, resp *http.Response, err error)
- func (s *ConfigStoreService) UpdateSetting(input *UpdateSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error)
- func (s *ConfigStoreService) UpdateSettingWithContext(ctx context.Context, input *UpdateSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error)
- type DeleteSettingInput
- type GetSettingInput
- type GetSettingsInput
- type UpdateSettingInput
Constants ¶
const (
// ServiceName - The name of service.
ServiceName = "ConfigStore"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigStoreAPI ¶
type ConfigStoreAPI interface { GetSetting(input *GetSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error) GetSettingWithContext(ctx context.Context, input *GetSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error) UpdateSetting(input *UpdateSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error) UpdateSettingWithContext(ctx context.Context, input *UpdateSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error) DeleteSetting(input *DeleteSettingInput) (output *models.ApiResult, resp *http.Response, err error) DeleteSettingWithContext(ctx context.Context, input *DeleteSettingInput) (output *models.ApiResult, resp *http.Response, err error) GetSettings(input *GetSettingsInput) (output *models.ConfigStoreBundle, resp *http.Response, err error) GetSettingsWithContext(ctx context.Context, input *GetSettingsInput) (output *models.ConfigStoreBundle, resp *http.Response, err error) }
type ConfigStoreService ¶
func New ¶
func New(cfg *config.Config) *ConfigStoreService
New creates a new instance of the ConfigStoreService client.
func (*ConfigStoreService) DeleteSetting ¶
func (s *ConfigStoreService) DeleteSetting(input *DeleteSettingInput) (output *models.ApiResult, resp *http.Response, err error)
DeleteSetting - Delete a setting. RequestType: DELETE Input: input *DeleteSettingInput
func (*ConfigStoreService) DeleteSettingWithContext ¶
func (s *ConfigStoreService) DeleteSettingWithContext(ctx context.Context, input *DeleteSettingInput) (output *models.ApiResult, resp *http.Response, err error)
DeleteSettingWithContext - Delete a setting. RequestType: DELETE Input: ctx context.Context, input *DeleteSettingInput
func (*ConfigStoreService) GetSetting ¶
func (s *ConfigStoreService) GetSetting(input *GetSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error)
GetSetting - Get a single setting from a bundle. RequestType: GET Input: input *GetSettingInput
func (*ConfigStoreService) GetSettingWithContext ¶
func (s *ConfigStoreService) GetSettingWithContext(ctx context.Context, input *GetSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error)
GetSettingWithContext - Get a single setting from a bundle. RequestType: GET Input: ctx context.Context, input *GetSettingInput
func (*ConfigStoreService) GetSettings ¶
func (s *ConfigStoreService) GetSettings(input *GetSettingsInput) (output *models.ConfigStoreBundle, resp *http.Response, err error)
GetSettings - Get all settings from a bundle. RequestType: GET Input: input *GetSettingsInput
func (*ConfigStoreService) GetSettingsWithContext ¶
func (s *ConfigStoreService) GetSettingsWithContext(ctx context.Context, input *GetSettingsInput) (output *models.ConfigStoreBundle, resp *http.Response, err error)
GetSettingsWithContext - Get all settings from a bundle. RequestType: GET Input: ctx context.Context, input *GetSettingsInput
func (*ConfigStoreService) UpdateSetting ¶
func (s *ConfigStoreService) UpdateSetting(input *UpdateSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error)
UpdateSetting - Create or update a setting/bundle. RequestType: PUT Input: input *UpdateSettingInput
func (*ConfigStoreService) UpdateSettingWithContext ¶
func (s *ConfigStoreService) UpdateSettingWithContext(ctx context.Context, input *UpdateSettingInput) (output *models.ConfigStoreSetting, resp *http.Response, err error)
UpdateSettingWithContext - Create or update a setting/bundle. RequestType: PUT Input: ctx context.Context, input *UpdateSettingInput
type DeleteSettingInput ¶
type GetSettingInput ¶
type GetSettingsInput ¶
type GetSettingsInput struct {
Bundle string
}
type UpdateSettingInput ¶
type UpdateSettingInput struct { Body models.ConfigStoreSetting Bundle string Id string }