model

package
v0.0.0-...-1e82369 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ID        uint       `gorm:"column:id;          primary_key" json:"id"`
	CreatedAt time.Time  `gorm:"column:created_at"               json:"createdAt"`
	UpdatedAt time.Time  `gorm:"column:updated_at"               json:"updatedAt"`
	DeletedAt *time.Time `sql:"index" gorm:"column:deleted_at"   json:"deletedAt"`

	Name string `gorm:"column:name; not null; unique_index:app_uindex; size:60" json:"name"`
}

type Cluster

type Cluster struct {
	ID        uint       `gorm:"column:id;          primary_key" json:"id"`
	CreatedAt time.Time  `gorm:"column:created_at"               json:"createdAt"`
	UpdatedAt time.Time  `gorm:"column:updated_at"               json:"updatedAt"`
	DeletedAt *time.Time `sql:"index" gorm:"column:deleted_at"   json:"deletedAt"`

	AppName string `gorm:"column:app_name; not null; unique_index:cluster_uindex; size:60" json:"appName"`
	Name    string `gorm:"column:name;     not null; unique_index:cluster_uindex; size:60" json:"name"`
}

type Instance

type Instance struct {
	ID        uint       `gorm:"column:id;          primary_key" json:"id"`
	CreatedAt time.Time  `gorm:"column:created_at"               json:"createdAt"`
	UpdatedAt time.Time  `gorm:"column:updated_at"               json:"updatedAt"`
	DeletedAt *time.Time `sql:"index" gorm:"column:deleted_at"   json:"deletedAt"`

	AppName       string `gorm:"column:app_name;       not null; unique_index:instance_uindex; size:60" json:"appName"`
	ClusterName   string `gorm:"column:cluster_name;   not null; unique_index:instance_uindex; size:60" json:"clusterName"`
	NamespaceName string `gorm:"column:namespace_name; not null; unique_index:instance_uindex; size:60" json:"namespaceName"`
	IP            string `gorm:"column:ip;             not null; unique_index:instance_uindex; size:60" json:"ip"`
}

type Item

type Item struct {
	ID        uint       `gorm:"column:id;          primary_key" json:"id"`
	CreatedAt time.Time  `gorm:"column:created_at"               json:"createdAt"`
	UpdatedAt time.Time  `gorm:"column:updated_at"               json:"updatedAt"`
	DeletedAt *time.Time `sql:"index" gorm:"column:deleted_at"   json:"deletedAt"`

	AppName       string `gorm:"column:app_name;       not null; unique_index:item_uindex; size:60" json:"appName"`
	ClusterName   string `gorm:"column:cluster_name;   not null; unique_index:item_uindex; size:60" json:"clusterName"`
	NamespaceName string `gorm:"column:namespace_name; not null; unique_index:item_uindex; size:60" json:"namespaceName"`
	Key           string `gorm:"column:key;            not null; unique_index:item_uindex; size:60" json:"key"`
	Value         string `gorm:"column:value;"                                                      json:"value"`
}

type Namespace

type Namespace struct {
	ID        uint       `gorm:"column:id;          primary_key" json:"id"`
	CreatedAt time.Time  `gorm:"column:created_at"               json:"createdAt"`
	UpdatedAt time.Time  `gorm:"column:updated_at"               json:"updatedAt"`
	DeletedAt *time.Time `sql:"index" gorm:"column:deleted_at"   json:"deletedAt"`

	AppName     string `gorm:"column:app_name;     not null; unique_index:namespace_uindex; size:60" json:"appName"`
	ClusterName string `gorm:"column:cluster_name; not null; unique_index:namespace_uindex; size:60" json:"clusterName"`
	Name        string `gorm:"column:name;         not null; unique_index:namespace_uindex; size:60" json:"name"`
}

Jump to

Keyboard shortcuts

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