Documentation ¶
Index ¶
- Variables
- func ParseBuild(b Build) (sdktypes.Build, error)
- func ParseConnection(c Connection) (sdktypes.Connection, error)
- func ParseDeployment(d Deployment) (sdktypes.Deployment, error)
- func ParseDeploymentWithSessionStats(d DeploymentWithStats) (sdktypes.Deployment, error)
- func ParseEnv(r Env) (sdktypes.Env, error)
- func ParseEnvVar(r EnvVar) (sdktypes.EnvVar, error)
- func ParseEvent(e Event) (sdktypes.Event, error)
- func ParseEventRecord(e EventRecord) (sdktypes.EventRecord, error)
- func ParseIntegration(i Integration) (sdktypes.Integration, error)
- func ParseProject(r Project) (sdktypes.Project, error)
- func ParseSession(s Session) (sdktypes.Session, error)
- func ParseSessionCallAttemptComplete(c SessionCallAttempt) (d sdktypes.SessionCallAttemptComplete, err error)
- func ParseSessionCallAttemptStart(c SessionCallAttempt) (d sdktypes.SessionCallAttemptStart, err error)
- func ParseSessionCallSpec(c SessionCallSpec) (spec sdktypes.SessionCallSpec, err error)
- func ParseSessionLogRecord(c SessionLogRecord) (spec sdktypes.SessionLogRecord, err error)
- func ParseTrigger(e Trigger) (sdktypes.Trigger, error)
- type Build
- type Connection
- type Deployment
- type DeploymentWithStats
- type Env
- type EnvVar
- type Event
- type EventRecord
- type Integration
- type Project
- type Session
- type SessionCallAttempt
- type SessionCallSpec
- type SessionLogRecord
- type Signal
- type Trigger
Constants ¶
This section is empty.
Variables ¶
View Source
var Tables = []any{ &Build{}, &Connection{}, &Deployment{}, &Env{}, &EnvVar{}, &Event{}, &EventRecord{}, &Integration{}, &Project{}, &Session{}, &SessionCallAttempt{}, &SessionCallSpec{}, &SessionLogRecord{}, &Signal{}, &Trigger{}, }
Functions ¶
func ParseConnection ¶
func ParseConnection(c Connection) (sdktypes.Connection, error)
func ParseDeployment ¶
func ParseDeployment(d Deployment) (sdktypes.Deployment, error)
func ParseDeploymentWithSessionStats ¶
func ParseDeploymentWithSessionStats(d DeploymentWithStats) (sdktypes.Deployment, error)
func ParseEventRecord ¶
func ParseEventRecord(e EventRecord) (sdktypes.EventRecord, error)
func ParseIntegration ¶
func ParseIntegration(i Integration) (sdktypes.Integration, error)
func ParseSessionCallAttemptComplete ¶
func ParseSessionCallAttemptComplete(c SessionCallAttempt) (d sdktypes.SessionCallAttemptComplete, err error)
func ParseSessionCallAttemptStart ¶
func ParseSessionCallAttemptStart(c SessionCallAttempt) (d sdktypes.SessionCallAttemptStart, err error)
func ParseSessionCallSpec ¶
func ParseSessionCallSpec(c SessionCallSpec) (spec sdktypes.SessionCallSpec, err error)
func ParseSessionLogRecord ¶
func ParseSessionLogRecord(c SessionLogRecord) (spec sdktypes.SessionLogRecord, err error)
Types ¶
type Connection ¶
type Deployment ¶
type Deployment struct { DeploymentID string `gorm:"primaryKey"` EnvID string `gorm:"foreignKey"` BuildID string `gorm:"foreignKey"` State int32 CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` // just for foreign key constraint. Without it gorm won't enforce it Env Env Build Build }
func (*Deployment) AfterDelete ¶
func (d *Deployment) AfterDelete(db *gorm.DB) error
gorm don't cascade soft deletes. hook is transactional.
type DeploymentWithStats ¶
type DeploymentWithStats struct { Deployment Created uint32 Running uint32 Error uint32 Completed uint32 }
type EnvVar ¶
type EnvVar struct { EnvID string `gorm:"index"` Name string Value string // not set if is_secret. // Set only if is_secret. will not be fetched by get, only by reveal. SecretValue string // TODO: encrypt? IsSecret bool // {eid.uuid}/{name}. easier to detect dups. // See OrgMember for more. MembershipID string `gorm:"uniqueIndex"` }
type Event ¶
type Event struct { EventID string `gorm:"uniqueIndex"` IntegrationID string `gorm:"index"` IntegrationToken string `gorm:"index"` OriginalEventID string EventType string `gorm:"index:idx_connection_id_event_type_seq,priority:2;index:idx_event_type"` ConnectionID string `gorm:"index:idx_connection_id_event_type_seq,priority:1"` Data datatypes.JSON Memo datatypes.JSON CreatedAt time.Time Seq uint64 `gorm:"primaryKey;autoIncrement:true,index:idx_connection_id_event_type_seq,priority:3"` }
type EventRecord ¶
type Integration ¶
type Integration struct { // Unique internal identifier. IntegrationID string `gorm:"primaryKey"` // Unique external (and URL-safe) identifier. UniqueName string `gorm:"uniqueIndex"` DisplayName string Description string LogoURL string UserLinks datatypes.JSON // TODO(ENG-346): Connection UI specification instead of a URL. ConnectionURL string APIKey string SigningKey string }
type Session ¶
type Session struct { SessionID string `gorm:"primaryKey"` DeploymentID string `gorm:"index;foreignKey"` EventID string `gorm:"index"` CurrentStateType int `gorm:"index"` Entrypoint string Inputs datatypes.JSON CreatedAt time.Time //`gorm:"default:current_timestamp"` UpdatedAt time.Time //`gorm:"default:current_timestamp"` DeletedAt gorm.DeletedAt `gorm:"index"` // just for foreign key constraint. Without it gorm won't enforce it Deployment *Deployment }
type SessionCallAttempt ¶
type SessionCallSpec ¶
type SessionLogRecord ¶
Click to show internal directories.
Click to hide internal directories.