common

package
v3.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInstAssociation

func CreateInstAssociation(objAddr string, req *restful.Request, instAsst []*metadata.InstAsst) error

func DeleteInstAssociation

func DeleteInstAssociation(objAddr string, req *restful.Request, instID int, ownerID, objID string) error

func ExtractDataFromAssociationField

func ExtractDataFromAssociationField(instID int64, input map[string]interface{}, asstDes []objapi.ObjAsstDes) []*metadata.InstAsst

ExtractDataFromAssociationField get asst data

func GetUserFromHeader

func GetUserFromHeader(req *restful.Request) string

func IsSuccess

func IsSuccess(rst []byte) (*api.BKAPIRsp, bool)

IsSuccess check the response

func UpdateInstAssociation

func UpdateInstAssociation(objAddr string, req *restful.Request, instID int, ownerID, objID string, input map[string]interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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