Documentation ¶
Index ¶
- Constants
- 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
- type AccountSpec
- type ESDocRef
- type EndpointSpec
- type FederationSpec
- type KVStoreRef
- type Metadata
- type NFID
- type NetworkSpec
- type NodeSpec
- type OperationSpec
- type ProjectSpec
- type RTID
- type RTSpec
- type RealmSpec
- type Ref
- type Resource
- 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
- type Resources
- type RoleSpec
- type SecurityGroupSpec
- type TenantSpec
- type UserSpec
- type VRFSpec
- type WorkflowSpec
Constants ¶
View Source
const ( KindFederation = "Federation" //KindController = "Controller" KindAccount = "Account" KindRealm = "Realm" KindUser = "User" KindSecurityGroup = "SecurityGroup" KindACL = "ACL" KindRole = "Role" KindTenant = "Tenant" KindProject = "Project" KindWorkflow = "Workflow" KindOperation = "Operation" KindNetwork = "Network" KindVRF = "VRF" KindNode = "Node" KindRoutingTable = "RoutingTable" )
View Source
const ( DefaultSecurityGroupID = "all-tenants" DefaultSecurityGroupTenants = ".*" DefaultRoleID = "admin" DefaultRolePermissions = ".*" DefaultACLID = "all-nodes" DefaultACLMMIDs = ".*" DefaultProjectID = "default" DefaultTenantID = "default" DefaultNetID = "default" DefaultNetworkCIDR = "10.248.0.0/16" DefaultSubnetID = "subnet-248" DefaultSubnetCIDR = "10.248.0.0/24" )
View Source
const ( RatingA = "A" RatingB = "B" RatingC = "C" RatingD = "D" RatingE = "E" )
View Source
const APIVersion = "v1"
View Source
Variables ¶
This section is empty.
Functions ¶
func CheckAccountRMSTrafficLimits ¶
func DeleteFederation ¶
func DeleteFederation(ctx context.Context, fed *controller.Federation) error
func DeleteFederationController ¶
func DeleteNetworkPolicy ¶
func DeleteSecurityGroup ¶
func DeleteSecurityGroup(ctx context.Context, sg *iam.SecurityGroup) error
func DisableAccount ¶
func EnableAccount ¶
func GetControllerCapabilities ¶
func GetControllerCapabilities() (*controller.Capabilities, error)
func GetFederation ¶
func GetFederation(ctx context.Context, fedID string) (*controller.Federation, error)
func GetFederationController ¶
func GetFederationController(ctx context.Context, fedID string, controllerID string) (*controller.Controller, error)
func GetNetworkPolicy ¶
func GetNodeFailProbability ¶
func GetNodeNetworkEndpoint ¶
func GetWorkflowFailProbability ¶
func ListFederationControllers ¶
func ListFederationControllers(ctx context.Context, fedID string) (*controller.Controllers, error)
func ListNetworks ¶
func ListOperations ¶
func ListProjects ¶
func ListSecurityGroups ¶
func ListTenants ¶
func ListWorkflows ¶
func NetworkHistoryMonthlyIndex ¶
func RegisterEndpoint ¶
func RegisterEndpoint(ctx context.Context, n *network.Node, e *network.NetworkEndpoint) (*network.NetworkEndpoint, error)
func RemoveEndpoint ¶
func ResetNodeNetworkTraffic ¶
func SetAccount ¶
func SetAccountLimits ¶
func SetAccountTraffic ¶
func SetAccountType ¶
func SetFederation ¶
func SetFederation(ctx context.Context, fed *controller.Federation) (*controller.Federation, error)
func SetNetwork ¶
func SetNetworkPolicy ¶
func SetNodeEventMetrics ¶
func SetProject ¶
func SetSecurityGroup ¶
func SetSecurityGroup(ctx context.Context, sg *iam.SecurityGroup) (*iam.SecurityGroup, error)
func SetUserCredentialsPassword ¶
func SetUserCredentialsTOTP ¶
func SetUserMetrics ¶
func SetWorkflow ¶
func SetWorkflowEventMetrics ¶
Types ¶
type AccountSpec ¶
AccountSpec is the account specfication
type ESDocRef ¶
type EndpointSpec ¶
type EndpointSpec struct {
// contains filtered or unexported fields
}
type FederationSpec ¶
type FederationSpec struct {
controller.Federation
}
type KVStoreRef ¶
type Metadata ¶
type RTSpec ¶
type RTSpec struct {
routing.RoutingTable
}
type Ref ¶
type Ref struct { NxDB KVStoreRef `json:"nxdb"` NxES ESDocRef `json:"nxes"` // contains filtered or unexported fields }
type Resource ¶
type Resource struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata Metadata `json:"metadata"` Ref Ref `json:"ref"` Spec interface{} `json:"spec"` }
func GetOperation ¶
func GetSecurityGroup ¶
type SecurityGroupSpec ¶
type SecurityGroupSpec struct {
iam.SecurityGroup
}
Source Files ¶
- account-limits-nodes.go
- account-limits-rms.go
- account-limits.go
- account-status.go
- account-traffic.go
- account-type.go
- account-usage.go
- account.go
- ae_operation.go
- ae_project.go
- ae_workflow-metrics.go
- ae_workflow.go
- api.go
- defaults.go
- federation.go
- iam_acl.go
- iam_realm.go
- iam_role.go
- iam_securityGroup.go
- iam_user-credentials.go
- iam_user-metrics.go
- iam_user-status.go
- iam_user.go
- metrics_event.go
- metrics_network.go
- network.go
- node-metrics.go
- node-status.go
- node.go
- node_endpoint-ipam.go
- rt.go
- tenant.go
- utils.go
- vrf-policy.go
- vrf.go
- vrf_ipam.go
- vrf_rms.go
Click to show internal directories.
Click to hide internal directories.