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 ParseEvent(e Event) (sdktypes.Event, 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 ParseSignal(r *Signal) (*types.Signal, error)
- func ParseTrigger(e Trigger) (sdktypes.Trigger, error)
- func ParseUser(r User) sdktypes.User
- func UUIDOrNil(uuid sdktypes.UUID) *sdktypes.UUID
- type Build
- type Connection
- type Deployment
- type DeploymentWithStats
- type Event
- type Ownership
- type Project
- type Secret
- type Session
- type SessionCallAttempt
- type SessionCallSpec
- type SessionLogRecord
- type Signal
- type Trigger
- type User
- type Value
- type Var
Constants ¶
This section is empty.
Variables ¶
View Source
var Tables = []any{ &Build{}, &Connection{}, &Deployment{}, &Event{}, &Ownership{}, &Project{}, &Secret{}, &Session{}, &SessionCallAttempt{}, &SessionCallSpec{}, &SessionLogRecord{}, &Signal{}, &Trigger{}, &User{}, &Value{}, &Var{}, }
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 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 Connection struct { ConnectionID sdktypes.UUID `gorm:"primaryKey;type:uuid;not null"` IntegrationID *sdktypes.UUID `gorm:"index;type:uuid"` ProjectID *sdktypes.UUID `gorm:"index;type:uuid"` Name string StatusCode int32 `gorm:"index"` StatusMessage string DeletedAt gorm.DeletedAt `gorm:"index"` // enforce foreign keys Project *Project Ownership *Ownership `gorm:"polymorphic:Entity;"` }
type Deployment ¶
type Deployment struct { DeploymentID sdktypes.UUID `gorm:"primaryKey;type:uuid;not null"` ProjectID *sdktypes.UUID `gorm:"index;type:uuid"` BuildID sdktypes.UUID `gorm:"type:uuid;not null"` State int32 CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` // enforce foreign keys Project *Project Build *Build Ownership *Ownership `gorm:"polymorphic:Entity;"` }
func (*Deployment) BeforeUpdate ¶ added in v0.9.0
func (d *Deployment) BeforeUpdate(tx *gorm.DB) (err error)
type DeploymentWithStats ¶
type Event ¶
type Event struct { EventID sdktypes.UUID `gorm:"uniqueIndex;type:uuid;not null"` DestinationID sdktypes.UUID `gorm:"index;type:uuid;not null"` IntegrationID *sdktypes.UUID `gorm:"index;type:uuid"` ConnectionID *sdktypes.UUID `gorm:"index;type:uuid"` TriggerID *sdktypes.UUID `gorm:"index;type:uuid"` EventType string `gorm:"index:idx_event_type_seq,priority:1;index:idx_event_type"` Data datatypes.JSON Memo datatypes.JSON CreatedAt time.Time Seq uint64 `gorm:"primaryKey;autoIncrement:true,index:idx_event_type_seq,priority:2"` DeletedAt gorm.DeletedAt `gorm:"index"` // enforce foreign keys Connection *Connection Trigger *Trigger Ownership *Ownership `gorm:"polymorphic:Entity;"` }
type Secret ¶ added in v0.3.1
Secret is a database table that simply stores sensitive key-value pairs, for usage by the "db" mode of autokitteh's secrets manager. WARNING: This is not secure in any way, and not durable by default. It is intended only for temporary, local, non-production purposes.
type Session ¶
type Session struct { SessionID sdktypes.UUID `gorm:"primaryKey;type:uuid;not null"` BuildID *sdktypes.UUID `gorm:"index;type:uuid"` ProjectID *sdktypes.UUID `gorm:"index;type:uuid"` DeploymentID *sdktypes.UUID `gorm:"index;type:uuid"` EventID *sdktypes.UUID `gorm:"index;type:uuid"` CurrentStateType int `gorm:"index"` Entrypoint string Inputs datatypes.JSON CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` Memo datatypes.JSON // enforce foreign keys Build *Build Deployment *Deployment Event *Event `gorm:"references:EventID"` Ownership *Ownership `gorm:"polymorphic:Entity;"` }
type SessionCallAttempt ¶
type SessionCallAttempt struct { SessionID sdktypes.UUID `gorm:"uniqueIndex:idx_session_id_seq_attempt,priority:1;type:uuid;not null"` Seq uint32 `gorm:"uniqueIndex:idx_session_id_seq_attempt,priority:2"` Attempt uint32 `gorm:"uniqueIndex:idx_session_id_seq_attempt,priority:3"` Start datatypes.JSON Complete datatypes.JSON // enforce foreign keys Session *Session }
type SessionCallSpec ¶
type SessionLogRecord ¶
type Signal ¶
type Signal struct { SignalID sdktypes.UUID `gorm:"primaryKey;type:uuid;not null"` DestinationID sdktypes.UUID `gorm:"index;type:uuid;not null"` ConnectionID *sdktypes.UUID `gorm:"type:uuid"` TriggerID *sdktypes.UUID `gorm:"type:uuid"` CreatedAt time.Time WorkflowID string Filter string // enforce foreign key Connection *Connection Trigger *Trigger }
type Trigger ¶
type Trigger struct { TriggerID sdktypes.UUID `gorm:"primaryKey;type:uuid;not null"` ProjectID sdktypes.UUID `gorm:"index;type:uuid;not null"` ConnectionID *sdktypes.UUID `gorm:"index;type:uuid"` SourceType string `gorm:"index"` EventType string Filter string CodeLocation string Name string // Makes sure name is unique - this is the project_id with name. UniqueName string `gorm:"uniqueIndex;not null"` // project_id + name WebhookSlug string `gorm:"index"` Schedule string DeletedAt gorm.DeletedAt `gorm:"index"` // enforce foreign keys Project *Project Connection *Connection Ownership *Ownership `gorm:"polymorphic:Entity;"` }
type Var ¶ added in v0.5.0
type Var struct { // varID is scopeID. just mapped directly for reusing the join code VarID sdktypes.UUID `gorm:"primaryKey;index;type:uuid;not null"` ScopeID sdktypes.UUID `gorm:"-"` Name string `gorm:"primaryKey;index;not null"` Value string IsSecret bool IntegrationID sdktypes.UUID `gorm:"index;type:uuid"` // var lookup by integration id }
Click to show internal directories.
Click to hide internal directories.