Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrDuplicateEntry = 1062
)
Variables ¶
Functions ¶
func RefreshVariableCounter ¶
func RefreshVariableCounter()
Types ¶
type Permission ¶
type Permission struct { ID uint32 `db:"id"` RepositoryID uint32 `db:"repository_id"` UserID uint32 `db:"user_id"` }
This table describes the type of access an user have for each repo. By default all users would have read-only access (that is if github api says so). This table only holds records for write access, including the repo owner, which the access entry should be written when they link up the repository
type Repository ¶
type User ¶
type User struct { ID uint32 `db:"id"` Login string `db:"login"` RefreshToken sql.NullString `db:"refresh_token"` Email string `db:"email"` }
type Variable ¶
type Variable struct { ID string `db:"id" json:"id"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt sql.NullTime `db:"updated_at" json:"updated_at"` Key string `db:"variable_key" json:"key,required"` Value string `db:"variable_value" json:"value,required"` RepositoryID uint32 `db:"repository_id" json:"repository_id,omitempty"` }
This table contains all the environment variables.
`Value`'s are never saved raw. always the base64 encoding of the ciphered text, and the `ad` is the base64 decoded value of it's ID
func (*Variable) DecryptValue ¶
func (*Variable) EncryptValue ¶
Cipher value, will panic if `Variable.ID` is an empty value
Click to show internal directories.
Click to hide internal directories.