models

package
v1.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label struct {
	ID          primitive.ObjectID   `bson:"_id,omitempty"               json:"id,omitempty"`
	Type        setting.ResourceType `bson:"type"                        json:"type"`
	Key         string               `bson:"key"                         json:"key"`
	Value       string               `bson:"value"                       json:"value"`
	CreateBy    string               `bson:"create_by"                   json:"create_by"`
	CreateTime  int64                `bson:"create_time"                 json:"create_time"`
	ProjectName string               `bson:"project_name"                json:"project_name"`
}

func (Label) TableName

func (Label) TableName() string

type LabelBinding

type LabelBinding struct {
	ID           primitive.ObjectID `bson:"_id,omitempty"               json:"id,omitempty"`
	ResourceType string             `bson:"resource_type"               json:"resource_type"`
	ResourceName string             `bson:"resource_name"                 json:"resource_name"`
	ProjectName  string             `bson:"project_name"                 json:"project_name"`
	LabelID      string             `bson:"label_id"                    json:"label_id"`
	CreateBy     string             `bson:"create_by"                   json:"create_by"`
	CreateTime   int64              `bson:"create_time"                 json:"create_time"`
}

func (LabelBinding) TableName

func (LabelBinding) TableName() string

Jump to

Keyboard shortcuts

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