configStore

package
v0.0.0-...-367d749 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
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

type ConfigStoreService struct {
	*client.PfClient
}

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 DeleteSettingInput struct {
	Bundle string
	Id     string
}

type GetSettingInput

type GetSettingInput struct {
	Bundle string
	Id     string
}

type GetSettingsInput

type GetSettingsInput struct {
	Bundle string
}

type UpdateSettingInput

type UpdateSettingInput struct {
	Body   models.ConfigStoreSetting
	Bundle string
	Id     string
}

Jump to

Keyboard shortcuts

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