Documentation ¶
Index ¶
- Constants
- type StateClientBase
- type StateClientReader
- type StateClientWriter
- func (s *StateClientWriter) CreateKey(ctx context.Context, account string, keyID string, key string) error
- func (s *StateClientWriter) DeleteKey(ctx context.Context, key string) error
- func (s *StateClientWriter) PauseAccount(ctx context.Context, account string) error
- func (s *StateClientWriter) ResumeAccount(ctx context.Context, account string) error
Constants ¶
View Source
const ( TemplateValidKey = "fc:key:%s" TemplatePausedAccount = "fc:pause:%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateClientBase ¶
type StateClientBase struct {
// contains filtered or unexported fields
}
func (*StateClientBase) Stop ¶
func (base *StateClientBase) Stop()
type StateClientReader ¶
type StateClientReader struct {
StateClientBase
}
func NewReader ¶
func NewReader(endpoints []string, username *string, password *string) (*StateClientReader, error)
func (*StateClientReader) CheckAccountPaused ¶
type StateClientWriter ¶
type StateClientWriter struct {
StateClientBase
}
func NewWriter ¶
func NewWriter(endpoints []string, username *string, password *string) (*StateClientWriter, error)
func (*StateClientWriter) DeleteKey ¶
func (s *StateClientWriter) DeleteKey(ctx context.Context, key string) error
func (*StateClientWriter) PauseAccount ¶
func (s *StateClientWriter) PauseAccount(ctx context.Context, account string) error
func (*StateClientWriter) ResumeAccount ¶
func (s *StateClientWriter) ResumeAccount(ctx context.Context, account string) error
Click to show internal directories.
Click to hide internal directories.