Documentation
¶
Index ¶
- type HttpStateProvider
- func (a *HttpStateProvider) Clone(config providers.IProviderConfig) (providers.IProvider, error)
- func (s *HttpStateProvider) Delete(ctx context.Context, request states.DeleteRequest) error
- func (s *HttpStateProvider) Get(ctx context.Context, request states.GetRequest) (states.StateEntry, error)
- func (s *HttpStateProvider) ID() string
- func (s *HttpStateProvider) Init(config providers.IProviderConfig) error
- func (i *HttpStateProvider) InitWithMap(properties map[string]string) error
- func (s *HttpStateProvider) List(ctx context.Context, request states.ListRequest) ([]states.StateEntry, string, error)
- func (s *HttpStateProvider) SetContext(ctx *contexts.ManagerContext)
- func (s *HttpStateProvider) Upsert(ctx context.Context, entry states.UpsertRequest) (string, error)
- type HttpStateProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpStateProvider ¶
type HttpStateProvider struct { Config HttpStateProviderConfig Data map[string]interface{} Context *contexts.ManagerContext }
func (*HttpStateProvider) Clone ¶
func (a *HttpStateProvider) Clone(config providers.IProviderConfig) (providers.IProvider, error)
func (*HttpStateProvider) Delete ¶
func (s *HttpStateProvider) Delete(ctx context.Context, request states.DeleteRequest) error
func (*HttpStateProvider) Get ¶
func (s *HttpStateProvider) Get(ctx context.Context, request states.GetRequest) (states.StateEntry, error)
func (*HttpStateProvider) ID ¶
func (s *HttpStateProvider) ID() string
func (*HttpStateProvider) Init ¶
func (s *HttpStateProvider) Init(config providers.IProviderConfig) error
func (*HttpStateProvider) InitWithMap ¶
func (i *HttpStateProvider) InitWithMap(properties map[string]string) error
func (*HttpStateProvider) List ¶
func (s *HttpStateProvider) List(ctx context.Context, request states.ListRequest) ([]states.StateEntry, string, error)
func (*HttpStateProvider) SetContext ¶
func (s *HttpStateProvider) SetContext(ctx *contexts.ManagerContext)
func (*HttpStateProvider) Upsert ¶
func (s *HttpStateProvider) Upsert(ctx context.Context, entry states.UpsertRequest) (string, error)
type HttpStateProviderConfig ¶
type HttpStateProviderConfig struct { Name string `json:"name"` Url string `json:"url"` PostAsArray bool `json:"postAsArray,omitempty"` PostNameInPath bool `json:"postNameInPath,omitempty"` PostBodyKeyName string `json:"postBodyKeyName,omitempty"` PostBodyValueName string `json:"postBodyValueName,omitempty"` NotFoundAs204 bool `json:"notFoundAs204,omitempty"` }
func HttpStateProviderConfigFromMap ¶
func HttpStateProviderConfigFromMap(properties map[string]string) (HttpStateProviderConfig, error)
Click to show internal directories.
Click to hide internal directories.