Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Git *gitlab.Client
View Source
var KMSKeyId = envy.Get("WHITELIST_KMS_KEY", "")
View Source
var Svc *kms.KMS
Functions ¶
func CheckTimeElapsed ¶
CheckTimeElapsed Checks if the time elapsed since the project was whitelisted is more than 7 days
func CreateVariable ¶
CreateVariable Creates a variable in GitLab from a project ID and a value
func VerifyWhitelist ¶
Types ¶
type WhitelistVariable ¶
type WhitelistVariable struct { ProjectIDCipher string `json:"project-id-cipher"` Time string `json:"time"` // Permanent or timestamp ProjectType string `json:"project-type"` // legacy-pipeline, docker-pipeline, or no-pipeline. }
func GetVariable ¶
func GetVariable(projectID int, key string) (bool, WhitelistVariable)
GetVariable Returns the variable value as a WhitelistVariable struct with th project ID decrypted
Click to show internal directories.
Click to hide internal directories.