Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { bun.BaseModel `bun:"table:apps,alias:a"` CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"createdAt"` UpdatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"updatedAt"` // ID string `bun:",pk" json:"appId"` Name string `bun:",pk" json:"name"` Products []string `bun:",array" json:"products"` Installs []*Install `bun:"rel:has-many,join:name=app_name" json:"installs,omitempty"` ReleaseChannel int `json:"releaseChannel"` Error string `json:"error"` InstallStatus string `json:"installStatus"` Repository string `json:"repository"` Credentials string `json:"credentials"` }
type Credentials ¶
type Credentials struct { bun.BaseModel `bun:"table:credentials,alias:creds"` Name string `bun:",pk" json:"name"` Username string `json:"username"` Password string `json:"password"` Token string `json:"token"` CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"createdAt"` }
func (Credentials) GetGitCreds ¶
func (a Credentials) GetGitCreds(c *gin.Context) transport.AuthMethod
func (Credentials) UsingBasic ¶
func (a Credentials) UsingBasic() bool
type Dependency ¶
type Install ¶
type Install struct { bun.BaseModel `bun:"table:installs,alias:i"` CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"createdAt"` UpdatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"updatedAt"` AppName string `bun:",pk" json:"appName"` ProductName string `bun:",pk" json:"productName"` ReleaseVersion string `json:"releaseVersion"` Error string `json:"error"` }
type Product ¶
type Product struct { bun.BaseModel `bun:"table:products,alias:p"` CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"createdAt"` UpdatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"updatedAt"` Name string `bun:",pk" json:"name"` Releases []*Release `bun:"rel:has-many,join:name=product_name" json:"releases,omitempty"` Installs []*Install `bun:"rel:has-many,join:name=product_name" json:"installs,omitempty"` }
type QueuedChange ¶
type QueuedChange struct { bun.BaseModel `bun:"table:queued_change,alias:qc"` ID string `bun:",pk" json:"id"` Release Release `json:"release"` Type string `json:"type"` TargetApp string `json:"targetApp"` LastChecked time.Time `json:"lastChecked"` Details string `json:"details"` CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"createdAt"` }
func (QueuedChange) ToSC ¶
func (qc QueuedChange) ToSC() StoredChange
type Release ¶
type Release struct { bun.BaseModel `bun:"table:releases,alias:r"` CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"createdAt"` UpdatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"updatedAt"` ProductName string `bun:",pk" json:"productName"` ProductVersion string `bun:",pk" json:"productVersion"` ReleaseChannel int `json:"releaseChannel"` HelmChart string `json:"helmChart"` Recalled bool `json:"recalled"` Dependencies []Dependency `json:"dependencies"` }
type ReleaseChannel ¶
type ReleaseChannel struct { bun.BaseModel `bun:"table:release_channels,alias:rcs"` CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"createdAt"` UpdatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"updatedAt"` Name string `bun:",pk" json:"name"` Value int `json:"value"` }
type StoredChange ¶
type StoredChange struct { bun.BaseModel `bun:"table:stored_change,alias:sc"` ID string `bun:",pk" json:"id"` Release Release `json:"release"` Type string `json:"type"` TargetApp string `json:"targetApp"` LastChecked time.Time `json:"lastChecked"` Details string `json:"details"` CreatedAt time.Time `json:"createdAt"` CompletedAt time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"completedAt"` }
Click to show internal directories.
Click to hide internal directories.