Versions in this module Expand all Collapse all v0 v0.0.3 Jun 7, 2020 Changes in this version + const APIVersion + const DefaultACLID + const DefaultACLMMIDs + const DefaultNetID + const DefaultNetworkCIDR + const DefaultProjectID + const DefaultRoleID + const DefaultRolePermissions + const DefaultSecurityGroupID + const DefaultSecurityGroupTenants + const DefaultSubnetCIDR + const DefaultSubnetID + const DefaultTenantID + const IPAMRequestedIPv4Unavailable + const KindACL + const KindAccount + const KindFederation + const KindNetwork + const KindNode + const KindOperation + const KindProject + const KindRealm + const KindRole + const KindRoutingTable + const KindSecurityGroup + const KindTenant + const KindUser + const KindVRF + const KindWorkflow + const RatingA + const RatingB + const RatingC + const RatingD + const RatingE + func CheckAccountRMSTrafficLimits(ctx context.Context, accountID string) error + func CheckUserEmail(realm, userEmail string) bool + func DecodeUserToken(userToken string) (*iam.User, error) + func DecodeWorkflow(wfWebhookToken string) (*workflow.Workflow, error) + func DeleteACL(ctx context.Context, a *iam.ACL) error + func DeleteAccount(ctx context.Context, a *account.Account) error + func DeleteFederation(ctx context.Context, fed *controller.Federation) error + func DeleteFederationController(ctx context.Context, fedID string, controllerID string) error + func DeleteNetwork(ctx context.Context, n *network.Network) error + func DeleteNetworkPolicy(ctx context.Context, v *network.VRF) (*network.Policy, error) + func DeleteNode(ctx context.Context, n *network.Node) error + func DeleteOperation(ctx context.Context, o *operation.Operation) error + func DeleteProject(ctx context.Context, p *project.Project) error + func DeleteRole(ctx context.Context, r *iam.Role) error + func DeleteSecurityGroup(ctx context.Context, sg *iam.SecurityGroup) error + func DeleteTenant(ctx context.Context, t *tenant.Tenant) error + func DeleteUser(ctx context.Context, u *iam.User) error + func DeleteVRF(ctx context.Context, v *network.VRF) error + func DeleteWorkflow(ctx context.Context, wf *workflow.Workflow) error + func DisableAccount(ctx context.Context, accountID string) (*account.Account, error) + func DisableUser(ctx context.Context, u *iam.User) (*iam.User, error) + func EnableAccount(ctx context.Context, accountID string) (*account.Account, error) + func EnableUser(ctx context.Context, u *iam.User) (*iam.User, error) + func EncodeAccountToken(accountID string) string + func EncodeUserToken(realm, userEmail string) (string, error) + func GetControllerCapabilities() (*controller.Capabilities, error) + func GetControllerID() (string, error) + func GetFederation(ctx context.Context, fedID string) (*controller.Federation, error) + func GetFederationController(ctx context.Context, fedID string, controllerID string) (*controller.Controller, error) + func GetNetworkPolicy(ctx context.Context, v *network.VRF) (*network.Policy, error) + func GetNodeFailProbability(ctx context.Context, n *network.Node) (float32, error) + func GetNodeNetworkEndpoint(ctx context.Context, e *network.Endpoint) (*network.NetworkEndpoint, error) + func GetWorkflowFailProbability(ctx context.Context, wf *workflow.Workflow) (float32, error) + func ListACLs(ctx context.Context, a *account.Account) (*iam.ACLs, error) + func ListAccounts(ctx context.Context) (*account.Accounts, error) + func ListFederationControllers(ctx context.Context, fedID string) (*controller.Controllers, error) + func ListNetworks(ctx context.Context, t *tenant.Tenant) (*network.Networks, error) + func ListNodeMMIDs(accountID string) (*network.MMIDs, error) + func ListNodes(ctx context.Context, v *network.VRF) (*network.Nodes, error) + func ListOperations(ctx context.Context, wf *workflow.Workflow) (*operation.Operations, error) + func ListProjects(ctx context.Context, accountID string) (*project.Projects, error) + func ListRoles(ctx context.Context, a *account.Account) (*iam.Roles, error) + func ListSecurityGroups(ctx context.Context, a *account.Account) (*iam.SecurityGroups, error) + func ListTenants(ctx context.Context, a *account.Account) (*tenant.Tenants, error) + func ListUsers(ctx context.Context, a *account.Account) (*iam.Users, error) + func ListVRFs(ctx context.Context, n *network.Network) (*network.VRFs, error) + func ListWorkflows(ctx context.Context, p *project.Project) (*workflow.Workflows, error) + func NetworkHistoryDailyIndex(day int) string + func NetworkHistoryHourlyIndex(hour int) string + func NetworkHistoryMonthlyIndex(year int, month time.Month) string + func RegisterEndpoint(ctx context.Context, n *network.Node, e *network.NetworkEndpoint) (*network.NetworkEndpoint, error) + func RegisterNode(ctx context.Context, n *network.Node) (*network.Node, error) + func RemoveEndpoint(ctx context.Context, n *network.Node, e *network.NetworkEndpoint) (*network.Node, error) + func ResetNodeNetworkTraffic(ctx context.Context, n *network.Node) (*network.Node, error) + func SetACL(ctx context.Context, a *iam.ACL) (*iam.ACL, error) + func SetAccount(ctx context.Context, a *account.Account) (*account.Account, error) + func SetAccountLimits(ctx context.Context, accountID string, l *account.Limits) (*account.Account, error) + func SetAccountTraffic(ctx context.Context, n *network.Node, ms bool) error + func SetAccountType(ctx context.Context, accountID string, t string) (*account.Account, error) + func SetFederation(ctx context.Context, fed *controller.Federation) (*controller.Federation, error) + func SetNetwork(ctx context.Context, n *network.Network) (*network.Network, error) + func SetNetworkPolicy(ctx context.Context, v *network.VRF) (*network.Policy, error) + func SetNodeDown(ctx context.Context, n *network.Node) (*network.Node, error) + func SetNodeEventMetrics(ctx context.Context, n *network.Node, er events.EventResult, timestamp int64) error + func SetNodeMetrics(ctx context.Context, n *network.Node) error + func SetNodeUp(ctx context.Context, n *network.Node) (*network.Node, error) + func SetOperation(ctx context.Context, o *operation.Operation) error + func SetProject(ctx context.Context, p *project.Project) (*project.Project, error) + func SetRole(ctx context.Context, r *iam.Role) (*iam.Role, error) + func SetSecurityGroup(ctx context.Context, sg *iam.SecurityGroup) (*iam.SecurityGroup, error) + func SetTenant(ctx context.Context, t *tenant.Tenant) (*tenant.Tenant, error) + func SetUser(ctx context.Context, u *iam.User) (*iam.User, error) + func SetUserCredentialsPassword(ctx context.Context, u *iam.User) (*iam.User, error) + func SetUserCredentialsTOTP(ctx context.Context, u *iam.User) (*iam.User, error) + func SetUserMetrics(ctx context.Context, u *iam.User, er events.EventResult, timestamp int64, ...) error + func SetUserPasswordReset(ctx context.Context, u *iam.User) error + func SetVRF(ctx context.Context, v *network.VRF) (*network.VRF, error) + func SetWorkflow(ctx context.Context, wf *workflow.Workflow) (*workflow.Workflow, error) + func SetWorkflowEventMetrics(ctx context.Context, wf *workflow.Workflow, er events.EventResult, ...) error + func UpdateAccountUsage(accountID string) error + func ValidAccount(ctx context.Context, accountID string) (bool, error) + type ACLSpec struct + type AccountSpec struct + type ESDocRef struct + Index string + ObjID string + type EndpointSpec struct + type FederationSpec struct + type KVStoreRef struct + ObjKey string + ObjSet string + type Metadata struct + LastModified time.Time + Name string + Realm string + type NFID string + func GetNFID(nf *network.Filter) NFID + func (nfID NFID) String() string + type NetworkSpec struct + type NodeSpec struct + type OperationSpec struct + type ProjectSpec struct + type RTID string + func GetRTID(opts *routing.RoutingTableOpts) RTID + type RTSpec struct + type RealmSpec struct + AccountID string + type Ref struct + NxDB KVStoreRef + NxES ESDocRef + type Resource struct + APIVersion string + Kind string + Metadata Metadata + Ref Ref + Spec interface{} + func GetACL(ctx context.Context, a *iam.ACL) (*Resource, error) + func GetAccount(ctx context.Context, accountID string) (*Resource, error) + func GetNetwork(ctx context.Context, n *network.Network) (*Resource, error) + func GetNode(ctx context.Context, n *network.Node) (*Resource, error) + func GetOperation(ctx context.Context, o *operation.Operation) (*Resource, error) + func GetProject(ctx context.Context, p *project.Project) (*Resource, error) + func GetRole(ctx context.Context, r *iam.Role) (*Resource, error) + func GetSecurityGroup(ctx context.Context, sg *iam.SecurityGroup) (*Resource, error) + func GetTenant(ctx context.Context, t *tenant.Tenant) (*Resource, error) + func GetUser(ctx context.Context, u *iam.User) (*Resource, error) + func GetVRF(ctx context.Context, v *network.VRF) (*Resource, error) + func GetWorkflow(ctx context.Context, wf *workflow.Workflow) (*Resource, error) + func New(name, realm, objSet string, kind string) *Resource + func (r *Resource) Delete(ctx context.Context) error + func (r *Resource) Get(ctx context.Context) error + func (r *Resource) ImportFile(jsonFile, kind, realm string) error + func (r *Resource) Lock() + func (r *Resource) Set(ctx context.Context) error + func (r *Resource) Unlock() + type Resources []Resource + func (rl *Resources) List(ctx context.Context, realm string, objSet string, kind string) error + type RoleSpec struct + type SecurityGroupSpec struct + type TenantSpec struct + type UserSpec struct + type VRFSpec struct + type WorkflowSpec struct