Documentation
¶
Index ¶
- type APIToken
- type AuditLog
- type Client
- func (c *Client) CreateDataNetwork(opts *CreateDataNetworkOptions) error
- func (c *Client) CreateMyAPIToken(opts *CreateAPITokenOptions) (*CreateAPITokenResponse, error)
- func (c *Client) CreatePolicy(opts *CreatePolicyOptions) error
- func (c *Client) CreateRoute(opts *CreateRouteOptions) error
- func (c *Client) CreateSubscriber(opts *CreateSubscriberOptions) error
- func (c *Client) CreateUser(opts *CreateUserOptions) error
- func (c *Client) DeleteDataNetwork(opts *DeleteDataNetworkOptions) error
- func (c *Client) DeleteMyAPIToken(tokenID string) error
- func (c *Client) DeletePolicy(opts *DeletePolicyOptions) error
- func (c *Client) DeleteRoute(opts *DeleteRouteOptions) error
- func (c *Client) DeleteSubscriber(opts *DeleteSubscriberOptions) error
- func (c *Client) DeleteUser(opts *DeleteUserOptions) error
- func (c *Client) GetAuditLogRetentionPolicy() (*GetAuditLogsRetentionPolicy, error)
- func (c *Client) GetDataNetwork(opts *GetDataNetworkOptions) (*DataNetwork, error)
- func (c *Client) GetMetrics() (map[string]float64, error)
- func (c *Client) GetOperator() (*Operator, error)
- func (c *Client) GetPolicy(opts *GetPolicyOptions) (*Policy, error)
- func (c *Client) GetRadio(opts *GetRadioOptions) (*Radio, error)
- func (c *Client) GetRoute(opts *GetRouteOptions) (*Route, error)
- func (c *Client) GetStatus() (*Status, error)
- func (c *Client) GetSubscriber(opts *GetSubscriberOptions) (*Subscriber, error)
- func (c *Client) GetToken() string
- func (c *Client) ListAuditLogs() ([]*AuditLog, error)
- func (c *Client) ListDataNetworks() ([]*DataNetwork, error)
- func (c *Client) ListMyAPITokens() ([]*APIToken, error)
- func (c *Client) ListPolicies() ([]*Policy, error)
- func (c *Client) ListRadios() ([]*Radio, error)
- func (c *Client) ListRoutes() ([]*Route, error)
- func (c *Client) ListSubscribers() ([]*Subscriber, error)
- func (c *Client) ListUsers() ([]*User, error)
- func (c *Client) Login(opts *LoginOptions) error
- func (c *Client) SetToken(token string)
- func (c *Client) UpdateAuditLogRetentionPolicy(opts *UpdateAuditLogsRetentionPolicyOptions) error
- func (c *Client) UpdateOperatorID(opts *UpdateOperatorIDOptions) error
- func (c *Client) UpdateOperatorSlice(opts *UpdateOperatorSliceOptions) error
- func (c *Client) UpdateOperatorTracking(opts *UpdateOperatorTrackingOptions) error
- type Config
- type ConnectionError
- type CreateAPITokenOptions
- type CreateAPITokenResponse
- type CreateDataNetworkOptions
- type CreatePolicyOptions
- type CreateRouteOptions
- type CreateSubscriberOptions
- type CreateUserOptions
- type DataNetwork
- type DeleteDataNetworkOptions
- type DeletePolicyOptions
- type DeleteRouteOptions
- type DeleteSubscriberOptions
- type DeleteUserOptions
- type GetAuditLogsRetentionPolicy
- type GetDataNetworkOptions
- type GetOperatorHomeNetworkResponse
- type GetOperatorIDResponse
- type GetOperatorSliceResponse
- type GetOperatorTrackingResponse
- type GetPolicyOptions
- type GetRadioOptions
- type GetRouteOptions
- type GetSubscriberOptions
- type LoginOptions
- type LoginResponseResult
- type Operator
- type PlmnID
- type Policy
- type Radio
- type RequestError
- type RequestOptions
- type RequestResponse
- type RequestType
- type Requester
- type RoleID
- type Route
- type Snssai
- type Status
- type Subscriber
- type SubscriberSession
- type SubscriberStatus
- type SupportedTAI
- type Tai
- type UpdateAuditLogsRetentionPolicyOptions
- type UpdateOperatorIDOptions
- type UpdateOperatorSliceOptions
- type UpdateOperatorTrackingOptions
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Requester Requester // contains filtered or unexported fields }
A Client knows how to talk to the the Ella Core API.
func (*Client) CreateDataNetwork ¶ added in v0.1.0
func (c *Client) CreateDataNetwork(opts *CreateDataNetworkOptions) error
func (*Client) CreateMyAPIToken ¶ added in v0.2.0
func (c *Client) CreateMyAPIToken(opts *CreateAPITokenOptions) (*CreateAPITokenResponse, error)
func (*Client) CreatePolicy ¶ added in v0.1.0
func (c *Client) CreatePolicy(opts *CreatePolicyOptions) error
func (*Client) CreateRoute ¶
func (c *Client) CreateRoute(opts *CreateRouteOptions) error
func (*Client) CreateSubscriber ¶
func (c *Client) CreateSubscriber(opts *CreateSubscriberOptions) error
func (*Client) CreateUser ¶
func (c *Client) CreateUser(opts *CreateUserOptions) error
func (*Client) DeleteDataNetwork ¶ added in v0.1.0
func (c *Client) DeleteDataNetwork(opts *DeleteDataNetworkOptions) error
func (*Client) DeleteMyAPIToken ¶ added in v0.2.0
func (*Client) DeletePolicy ¶ added in v0.1.0
func (c *Client) DeletePolicy(opts *DeletePolicyOptions) error
func (*Client) DeleteRoute ¶
func (c *Client) DeleteRoute(opts *DeleteRouteOptions) error
func (*Client) DeleteSubscriber ¶
func (c *Client) DeleteSubscriber(opts *DeleteSubscriberOptions) error
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(opts *DeleteUserOptions) error
func (*Client) GetAuditLogRetentionPolicy ¶ added in v0.2.0
func (c *Client) GetAuditLogRetentionPolicy() (*GetAuditLogsRetentionPolicy, error)
func (*Client) GetDataNetwork ¶ added in v0.1.0
func (c *Client) GetDataNetwork(opts *GetDataNetworkOptions) (*DataNetwork, error)
func (*Client) GetMetrics ¶
GetMetrics retrieves the metrics from the server and returns a map where keys are metric names and values are their corresponding float values.
func (*Client) GetOperator ¶
func (*Client) GetPolicy ¶ added in v0.1.0
func (c *Client) GetPolicy(opts *GetPolicyOptions) (*Policy, error)
func (*Client) GetSubscriber ¶
func (c *Client) GetSubscriber(opts *GetSubscriberOptions) (*Subscriber, error)
func (*Client) ListAuditLogs ¶ added in v0.2.0
func (*Client) ListDataNetworks ¶ added in v0.1.0
func (c *Client) ListDataNetworks() ([]*DataNetwork, error)
func (*Client) ListMyAPITokens ¶ added in v0.2.0
func (*Client) ListPolicies ¶ added in v0.1.0
func (*Client) ListRadios ¶
func (*Client) ListRoutes ¶
func (*Client) ListSubscribers ¶
func (c *Client) ListSubscribers() ([]*Subscriber, error)
func (*Client) Login ¶
func (c *Client) Login(opts *LoginOptions) error
Login authenticates the user with the provided email and password. It stores the token in the client for future requests.
func (*Client) UpdateAuditLogRetentionPolicy ¶ added in v0.2.0
func (c *Client) UpdateAuditLogRetentionPolicy(opts *UpdateAuditLogsRetentionPolicyOptions) error
func (*Client) UpdateOperatorID ¶
func (c *Client) UpdateOperatorID(opts *UpdateOperatorIDOptions) error
func (*Client) UpdateOperatorSlice ¶
func (c *Client) UpdateOperatorSlice(opts *UpdateOperatorSliceOptions) error
func (*Client) UpdateOperatorTracking ¶
func (c *Client) UpdateOperatorTracking(opts *UpdateOperatorTrackingOptions) error
type Config ¶
type Config struct { // BaseURL contains the base URL where Ella Core is expected to be. BaseURL string // APIToken is the API token used for authentication. APIToken string // TLSConfig is an optional TLS configuration. TLSConfig *tls.Config }
Config allows the user to customize client behavior.
type ConnectionError ¶
type ConnectionError struct {
// contains filtered or unexported fields
}
ConnectionError represents a connection or communication error.
func (ConnectionError) Error ¶
func (e ConnectionError) Error() string
func (ConnectionError) Unwrap ¶
func (e ConnectionError) Unwrap() error
type CreateAPITokenOptions ¶ added in v0.2.0
type CreateAPITokenResponse ¶ added in v0.2.0
type CreateAPITokenResponse struct {
Token string `json:"token"`
}
type CreateDataNetworkOptions ¶ added in v0.1.0
type CreatePolicyOptions ¶ added in v0.1.0
type CreateRouteOptions ¶
type CreateSubscriberOptions ¶
type CreateUserOptions ¶
type DataNetwork ¶ added in v0.1.0
type DeleteDataNetworkOptions ¶ added in v0.1.0
type DeleteDataNetworkOptions struct {
Name string `json:"name"`
}
type DeletePolicyOptions ¶ added in v0.1.0
type DeletePolicyOptions struct {
Name string `json:"name"`
}
type DeleteRouteOptions ¶
type DeleteRouteOptions struct {
ID int64 `json:"id"`
}
type DeleteSubscriberOptions ¶
type DeleteSubscriberOptions struct {
ID string `json:"id"`
}
type DeleteUserOptions ¶
type DeleteUserOptions struct {
Email string `json:"email"`
}
type GetAuditLogsRetentionPolicy ¶ added in v0.2.0
type GetAuditLogsRetentionPolicy struct {
Days int `json:"days"`
}
type GetDataNetworkOptions ¶ added in v0.1.0
type GetDataNetworkOptions struct {
Name string `json:"name"`
}
type GetOperatorHomeNetworkResponse ¶
type GetOperatorHomeNetworkResponse struct {
PublicKey string `json:"publicKey,omitempty"`
}
type GetOperatorIDResponse ¶
type GetOperatorTrackingResponse ¶
type GetOperatorTrackingResponse struct {
SupportedTacs []string `json:"supportedTacs,omitempty"`
}
type GetPolicyOptions ¶ added in v0.1.0
type GetPolicyOptions struct {
Name string `json:"name"`
}
type GetRadioOptions ¶
type GetRadioOptions struct {
Name string `json:"name"`
}
type GetRouteOptions ¶
type GetRouteOptions struct {
ID int64 `json:"id"`
}
type GetSubscriberOptions ¶
type GetSubscriberOptions struct {
ID string `json:"id"`
}
type LoginOptions ¶
type LoginResponseResult ¶
type LoginResponseResult struct {
Token string `json:"token"`
}
type Operator ¶
type Operator struct { ID GetOperatorIDResponse `json:"id,omitempty"` Slice GetOperatorSliceResponse `json:"slice,omitempty"` Tracking GetOperatorTrackingResponse `json:"tracking,omitempty"` HomeNetwork GetOperatorHomeNetworkResponse `json:"homeNetwork,omitempty"` }
type Radio ¶
type Radio struct { Name string `json:"name"` ID string `json:"id"` Address string `json:"address"` SupportedTAIs []SupportedTAI `json:"supported_tais"` }
type RequestError ¶
type RequestError struct {
// contains filtered or unexported fields
}
RequestError is returned when there's an error processing the request.
func (RequestError) Error ¶
func (e RequestError) Error() string
type RequestOptions ¶
type RequestResponse ¶
type RequestResponse struct { StatusCode int Headers http.Header // Result can contain request specific JSON data. The result can be // unmarshalled into the expected type using the DecodeResult method. Result []byte // Body is only set for request type RawRequest. Body io.ReadCloser }
func (*RequestResponse) DecodeResult ¶
func (resp *RequestResponse) DecodeResult(result any) error
DecodeResult decodes the endpoint-specific result payload that is included as part of sync and async request responses.
type Requester ¶
type Requester interface { // Do performs the HTTP transaction using the provided options. Do(ctx context.Context, opts *RequestOptions) (*RequestResponse, error) }
type Subscriber ¶
type SubscriberSession ¶ added in v0.1.0
type SubscriberSession struct {
IPAddress string `json:"ipAddress"`
}
type SubscriberStatus ¶ added in v0.1.0
type SubscriberStatus struct { Registered bool `json:"registered"` Sessions []SubscriberSession `json:"sessions"` }
type SupportedTAI ¶
type UpdateAuditLogsRetentionPolicyOptions ¶ added in v0.2.0
type UpdateAuditLogsRetentionPolicyOptions struct {
Days int `json:"days"`
}
type UpdateOperatorIDOptions ¶
type UpdateOperatorTrackingOptions ¶
type UpdateOperatorTrackingOptions struct {
SupportedTacs []string
}
Click to show internal directories.
Click to hide internal directories.