Documentation ¶
Index ¶
- type DbStore
- func (store *DbStore) CreateConn() error
- func (store *DbStore) ExecuteDbFetch(ctx context.Context, query Queries) (output []map[string]interface{}, err error)
- func (store *DbStore) ExecuteDbSave(ctx context.Context, queries []Queries) (output [][]map[string]interface{}, err error)
- func (store *DbStore) GetConn() *sqlx.DB
- func (store *DbStore) GetDbType() string
- func (store *DbStore) GetStoreByteArray(dbString string) (b []byte, err error)
- func (store *DbStore) LoadStore(dbString string, ms StoreI) (err error)
- func (store *DbStore) SaveStore(ctx context.Context, dbString string, ms StoreI) (err error)
- func (store *DbStore) SetDbType(dbtype string)
- func (store *DbStore) SetStoreTableName(tablename string)
- type EnvVars
- type FileStore
- type Queries
- type Secrets
- type Store
- func (store *Store) CreateConn() error
- func (store *Store) ExecuteDbFetch(ctx context.Context, query Queries) (output []map[string]interface{}, err error)
- func (store *Store) ExecuteDbSave(ctx context.Context, queries []Queries) (output [][]map[string]interface{}, err error)
- func (store *Store) FetchRepo(ctx context.Context, projectId string) (repo *repos.Repo, err error)
- func (store *Store) FetchVars(ctx context.Context, projectId string) (variables *Variables, err error)
- func (store *Store) GetConn() *sqlx.DB
- func (store *Store) GetDbType() string
- func (store *Store) GetProjectConfigForRepo(ctx context.Context, projectId string, ms StoreI) (repoData map[string]map[string]interface{}, err error)
- func (store *Store) RemoveEnvVar(ctx context.Context, projectId string, key string, s StoreI) (err error)
- func (store *Store) RemoveSecret(ctx context.Context, projectId string, key string, s StoreI) (err error)
- func (store *Store) RemoveVar(ctx context.Context, projectId string, key string, s StoreI) (err error)
- func (store *Store) ReplaceVariables(ctx context.Context, projectId string, text []byte) (returnText []byte)
- func (store *Store) SaveEnvVar(ctx context.Context, projectId string, newEnvVar EnvVars, s StoreI) (err error)
- func (store *Store) SaveRepo(ctx context.Context, projectId string, repo repos.Repo, s StoreI) (err error)
- func (store *Store) SaveSecret(ctx context.Context, projectId string, newSecret Secrets, s StoreI) (err error)
- func (store *Store) SaveVar(ctx context.Context, projectId string, newVar Vars, s StoreI) (err error)
- func (store *Store) SetDbType(dbtype string)
- func (store *Store) SetStoreTableName(tablename string)
- func (store *Store) SetVars(ctx context.Context, variables map[string]*Variables)
- type StoreI
- type Variables
- type Vars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbStore ¶
type DbStore struct { Store DbType string UpdateTime time.Time StoreTableName string Con *sqlx.DB `json:"-"` ConStatus bool `json:"-"` // contains filtered or unexported fields }
func (*DbStore) CreateConn ¶
func (*DbStore) ExecuteDbFetch ¶
func (*DbStore) ExecuteDbSave ¶
func (*DbStore) GetStoreByteArray ¶
func (*DbStore) SetStoreTableName ¶
type Store ¶
type Store struct { //Projects map[string]*model.Project //ProjectId is the key Variables map[string]*Variables ProjectRepos map[string]*repos.Repo }
func (*Store) CreateConn ¶
func (*Store) ExecuteDbFetch ¶
func (*Store) ExecuteDbSave ¶
func (*Store) GetProjectConfigForRepo ¶
func (*Store) RemoveEnvVar ¶
func (*Store) RemoveSecret ¶
func (*Store) ReplaceVariables ¶
func (*Store) SaveEnvVar ¶
func (*Store) SaveSecret ¶
func (*Store) SetStoreTableName ¶
type StoreI ¶
type StoreI interface { LoadStore(fp string, ms StoreI) (err error) GetStoreByteArray(fp string) (b []byte, err error) SaveStore(ctx context.Context, fp string, ms StoreI) (err error) SetDbType(dbtype string) CreateConn() error GetConn() *sqlx.DB GetDbType() string ExecuteDbSave(ctx context.Context, queries []Queries) (output [][]map[string]interface{}, err error) ExecuteDbFetch(ctx context.Context, query Queries) (output []map[string]interface{}, err error) SetStoreTableName(tablename string) SetVars(ctx context.Context, variables map[string]*Variables) SaveVar(ctx context.Context, projectId string, newVar Vars, s StoreI) (err error) RemoveVar(ctx context.Context, projectId string, key string, s StoreI) (err error) SaveEnvVar(ctx context.Context, projectId string, newEnvVar EnvVars, s StoreI) (err error) RemoveEnvVar(ctx context.Context, projectId string, key string, s StoreI) (err error) SaveSecret(ctx context.Context, projectId string, newSecret Secrets, s StoreI) (err error) RemoveSecret(ctx context.Context, projectId string, key string, s StoreI) (err error) FetchVars(ctx context.Context, projectId string) (variables *Variables, err error) ReplaceVariables(ctx context.Context, projectId string, text []byte) (returnText []byte) SaveRepo(ctx context.Context, projectId string, repo repos.Repo, s StoreI) (err error) FetchRepo(ctx context.Context, projectId string) (repo *repos.Repo, err error) GetProjectConfigForRepo(ctx context.Context, projectId string, ms StoreI) (repoData map[string]map[string]interface{}, err error) }
Click to show internal directories.
Click to hide internal directories.