Documentation
¶
Index ¶
Constants ¶
View Source
const (
AccountCollectionName = "account"
)
View Source
const (
AccountPrivateCollectionName = "account_private"
)
View Source
const (
// ComponentCollectionName 은 실제로 별도의 Collection 에 저장하지 않음.
ComponentCollectionName = "component"
)
View Source
const (
ImageCollectionName = "image"
)
View Source
const (
RepositoryCollectionName = "repository"
)
Variables ¶
View Source
var ( AccountDefaultIndex = mongo.IndexModel{ Keys: bsonx.Doc{{Key: "username", Value: bsonx.Int32(1)}, {Key: "registry_type", Value: bsonx.Int32(1)}, {Key: "registry_url", Value: bsonx.Int32(1)}}, Options: options.Index().SetUnique(true), } )
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` RegistryType string `json:"registry_type" bson:"registry_type"` RegistryUrl string `json:"registry_url" bson:"registry_url"` Username string `json:"username" bson:"username"` Nickname string `json:"nickname" bson:"nickname"` }
type AccountPrivate ¶
type Component ¶
type Component struct { Id primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` RepositoryId primitive.ObjectID `json:"repository_id" bson:"repository_id"` IsAlwaysLatest bool `json:"is_always_latest" bson:"is_always_latest"` ImageId primitive.ObjectID `json:"image_id,omitempty" bson:"image_id,omitempty"` }
Click to show internal directories.
Click to hide internal directories.