Documentation ¶
Index ¶
- func NewAgentFactory(testAgentHost, operatorAgentHost string, timeout time.Duration, debug bool) *agentFactory
- type AgentAdapter
- type AgentFactory
- type OperatorAgentAdaper
- func (o *OperatorAgentAdaper) ActivateSim(ctx context.Context, iccid string) error
- func (o *OperatorAgentAdaper) BindSim(ctx context.Context, iccid string) (any, error)
- func (t *OperatorAgentAdaper) Close()
- func (o *OperatorAgentAdaper) DeactivateSim(ctx context.Context, iccid string) error
- func (o *OperatorAgentAdaper) GetSim(ctx context.Context, iccid string) (any, error)
- func (o *OperatorAgentAdaper) GetUsages(ctx context.Context, iccid, cdrType, from, to, region string) (any, any, error)
- func (o *OperatorAgentAdaper) TerminateSim(ctx context.Context, iccid string) error
- type TestAgentAdapter
- func (t *TestAgentAdapter) ActivateSim(ctx context.Context, iccid string) error
- func (t *TestAgentAdapter) BindSim(ctx context.Context, iccid string) (any, error)
- func (t *TestAgentAdapter) Close()
- func (t *TestAgentAdapter) DeactivateSim(ctx context.Context, iccid string) error
- func (t *TestAgentAdapter) GetSim(ctx context.Context, iccid string) (any, error)
- func (t *TestAgentAdapter) GetUsages(ctx context.Context, iccid, cdrType, from, to, region string) (any, any, error)
- func (t *TestAgentAdapter) TerminateSim(ctx context.Context, iccid string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentAdapter ¶
type AgentAdapter interface { BindSim(context.Context, string) (any, error) GetSim(context.Context, string) (any, error) GetUsages(context.Context, string, string, string, string, string) (any, any, error) ActivateSim(context.Context, string) error DeactivateSim(context.Context, string) error TerminateSim(context.Context, string) error Close() }
type AgentFactory ¶
type AgentFactory interface {
GetAgentAdapter(ukama.SimType) (AgentAdapter, bool)
}
type OperatorAgentAdaper ¶
type OperatorAgentAdaper struct {
// contains filtered or unexported fields
}
func NewOperatorAgentAdapter ¶
func NewOperatorAgentAdapter(operatorAgentHost string, debug bool) (*OperatorAgentAdaper, error)
func (*OperatorAgentAdaper) ActivateSim ¶
func (o *OperatorAgentAdaper) ActivateSim(ctx context.Context, iccid string) error
func (*OperatorAgentAdaper) Close ¶
func (t *OperatorAgentAdaper) Close()
func (*OperatorAgentAdaper) DeactivateSim ¶
func (o *OperatorAgentAdaper) DeactivateSim(ctx context.Context, iccid string) error
func (*OperatorAgentAdaper) TerminateSim ¶
func (o *OperatorAgentAdaper) TerminateSim(ctx context.Context, iccid string) error
type TestAgentAdapter ¶
type TestAgentAdapter struct {
// contains filtered or unexported fields
}
func NewTestAgentAdapter ¶
func NewTestAgentAdapter(testAgentHost string, timeout time.Duration) (*TestAgentAdapter, error)
func (*TestAgentAdapter) ActivateSim ¶
func (t *TestAgentAdapter) ActivateSim(ctx context.Context, iccid string) error
func (*TestAgentAdapter) Close ¶
func (t *TestAgentAdapter) Close()
func (*TestAgentAdapter) DeactivateSim ¶
func (t *TestAgentAdapter) DeactivateSim(ctx context.Context, iccid string) error
func (*TestAgentAdapter) TerminateSim ¶
func (t *TestAgentAdapter) TerminateSim(ctx context.Context, iccid string) error
Click to show internal directories.
Click to hide internal directories.