initialize

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Component

func Component() error

Component ..

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 added in v1.2.2

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

type RouterReq added in v1.2.2

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