impl

package
v0.0.0-...-6a8978f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cost

type Cost struct {
	*ResourceId
	*resource.Cost
}

func NewCost

func NewCost() *Cost

func (*Cost) TableName

func (m *Cost) TableName() string

type Resource

type Resource struct {
	*resource.Meta
	*Spec
	*Cost
	*Status
}

为了接受数据库返回的数据, 构造的满足数据库自动关系的对象

func NewResource

func NewResource() *Resource

type ResourceId

type ResourceId struct {
	ResourceId string `json:"resource_id"`
}

type ResourceSet

type ResourceSet struct {
	Total int64
	Items []*Resource
}

func NewResourceSet

func NewResourceSet() *ResourceSet

func (*ResourceSet) ResourceSet

func (s *ResourceSet) ResourceSet() *resource.ResourceSet

type Spec

type Spec struct {
	*ResourceId
	*resource.Spec
}

func NewSpec

func NewSpec() *Spec

func (*Spec) TableName

func (s *Spec) TableName() string

type Status

type Status struct {
	*ResourceId
	*resource.Status
}

func NewStatus

func NewStatus() *Status

func (*Status) TableName

func (m *Status) TableName() string

type Tag

type Tag struct {
	*ResourceId
	*resource.Tag
}

func (*Tag) TableName

func (m *Tag) TableName() string

Jump to

Keyboard shortcuts

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