sdk

package
v0.0.0-...-615c734 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeprecatedMgmtSDK = make([]*MgmtSDK, 0, 10)

Functions

This section is empty.

Types

type MgmtSDK

type MgmtSDK struct {
	// e: redis/armredis
	Name    string
	ArmName string

	SpecName string // specification 第一层目录
	SpecPath string // 到readme.md的路径

	LocalPath string

	AutoRest *autorest.AutoRestMarkdown

	Module *Module

	GoMod *modfile.File
}

func GetAllMgmtSDK

func GetAllMgmtSDK(src string) ([]*MgmtSDK, error)

func NewMgmtSDK

func NewMgmtSDK(localPath string) (*MgmtSDK, error)

func (MgmtSDK) IsDeprecated

func (ms MgmtSDK) IsDeprecated() bool

判断go.mod是否 Deprecated

type Module

type Module struct {
	ModuleName    string
	ModuleVersion string
}

constants.go

func ReadModule

func ReadModule(constantPath string) (*Module, error)

func (Module) GetSDKAndArm

func (m Module) GetSDKAndArm() (string, string)

response sdkName and armName

Jump to

Keyboard shortcuts

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