Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { // Unique ID of the entity ID int64 `gorm:"primaryKey,autoIncrement"` // Project ID that own the entity ProjectID int64 // CreatedAt creation timestamp CreatedAt time.Time // UpdatedAt last update timestamp UpdatedAt time.Time }
Base is base model
type LogWriter ¶
type LogWriter struct { // Base provides common DB model field, namely ID, ProjectID, CreatedAt, UpdatedAt Base // Name of the log writer Name string // Log Writer Source configuration Source *LogWriterSource `gorm:"type:jsonb"` // Deployment status of the log writer Status Status // Error message Error string `gorm:"size:2048"` }
LogWriter data model for log writer
func LogWriterFromProto ¶
LogWriterFromProto convert LogWriter proto to internal representation of LogWriter
func (*LogWriter) ToLogWriterProto ¶
ToLogWriterProto convert internal LogWriter representation into LogWriter proto message
type LogWriterSource ¶
type LogWriterSource struct {
*timberv1.LogWriterSource
}
LogWriterSource is wrapper of LogWriterSource proto message to allow marshalling and unmarshalling to DB
func (*LogWriterSource) Scan ¶
func (l *LogWriterSource) Scan(value interface{}) error
Scan parses jsonb as LogWriterSource
type ObservationService ¶
type ObservationService struct { // Base provides common DB model field, namely ID, ProjectID, CreatedAt, UpdatedAt Base // Name of observation service Name string // Source of the observation service Source *ObservationServiceSource `gorm:"type:jsonb"` // Deployment status of the observation service Status Status // Error message Error string `gorm:"size:2048"` }
ObservationService observation service internal model representation
func ObservationServiceFromProto ¶
func ObservationServiceFromProto(msg *timberv1.ObservationService) *ObservationService
ObservationServiceFromProto convert ObservationService proto to internal representation of ObservationService
func (*ObservationService) ToObservationServiceProto ¶
func (w *ObservationService) ToObservationServiceProto() *timberv1.ObservationService
ToObservationServiceProto convert internal ObservationService representation into ObservationService proto message
type ObservationServiceSource ¶
type ObservationServiceSource struct {
*timberv1.ObservationServiceSource
}
ObservationServiceSource is wrapper of timberv1.ObservationServiceSource proto message to allow marshalling and unmarshalling to DB
func (*ObservationServiceSource) Scan ¶
func (l *ObservationServiceSource) Scan(value interface{}) error
Scan parses jsonb as ObservationServiceSource
type Status ¶
type Status string
Status deployment status
const ( // StatusUnspecified status is not initialized StatusUnspecified Status = "STATUS_UNSPECIFIED" // StatusDeployed successfully deployed StatusDeployed Status = "STATUS_DEPLOYED" // StatusUninstalled successfully uninstalled StatusUninstalled Status = "STATUS_UNINSTALLED" // StatusFailed failed deployment StatusFailed Status = "STATUS_FAILED" // StatusPending waiting for deployment to complete StatusPending Status = "STATUS_PENDING" )
func StatusFromProto ¶
StatusFromProto creates internal status representation based on timberv1.Status proto message
func (Status) ToStatusProto ¶
ToStatusProto convert internal status representation into timberv1.Status proto message