initialize

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v1.5.0

func Init()

func InitAdminUserAndGroup

func InitAdminUserAndGroup() error

初始化系统用户组

func ToBatchResourceTypeReq

func ToBatchResourceTypeReq(specs []BatchResourceTypeSpec) models.BatchResourceTypeReq

Types

type BatchResourceTypeSpec

type BatchResourceTypeSpec struct {
	ResourceType       []string   `json:"resource_type"`
	ResourceOperation  [][]string `json:"resource_operation"`
	ResourceConstraint [][]string `json:"resource_constraint"`
}

type ResourceReq

type ResourceReq struct {
	Resources []BatchResourceTypeSpec `json:"resources"`
}

type RouterReq

type RouterReq struct {
	Routers [][]string `json:"routers"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL