kubernetesadapter

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB, logger logrus.FieldLogger) error

Migrate executes the table migrations for the application models.

Types

type KubernetesClusterModel

type KubernetesClusterModel struct {
	ID          uint              `gorm:"primary_key"`
	Metadata    map[string]string `gorm:"-"`
	MetadataRaw []byte            `gorm:"meta_data"`
}

KubernetesClusterModel describes the build your own cluster model

func (*KubernetesClusterModel) AfterFind

func (cs *KubernetesClusterModel) AfterFind() error

AfterFind converts the metadata json string to a map in case of Kubernetes

func (*KubernetesClusterModel) BeforeSave

func (cs *KubernetesClusterModel) BeforeSave() (err error)

BeforeSave converts the metadata into a json string in case of Kubernetes

func (KubernetesClusterModel) TableName

func (KubernetesClusterModel) TableName() string

TableName sets the KubernetesClusterModel's table name

Jump to

Keyboard shortcuts

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