Documentation
¶
Index ¶
- Variables
- func CreateHttpClient() *http.Client
- func MakeTemplate(id int, fullname string, branch string) ([]byte, error)
- func PushJob(gitPayload []byte, patrickURL string, repo Repository) error
- func RegisterTestDomain(ctx context.Context, mockAuthURL string) (err error)
- func RegisterTestProject(ctx context.Context, mockAuthURL string) (err error)
- func RegisterTestRepositories(ctx context.Context, mockAuthURL string, repos ...Repository) (err error)
- type Repository
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestFQDN = "hal.computers.com" GitToken = os.Getenv("TEST_GIT_TOKEN") GitProvider = "github" ProjectID = "Qmc3WjpDvCaVY3jWmxranUY7roFhRj66SNqstiRbKxDbU4" GitUser = "taubyte-test" ProjectName = "testproject" KeepRepos = []string{"tb_testproject", "tb_code_testproject", "tb_website_testwebsite", "tb_library_testLibrary", "tb_website_reactdemo", "tb_website_socketWebsite"} ConfigRepo Repository = Repository{ ID: 485473636, HookId: 357884401, Name: "tb_testproject", URL: "https://github.com/taubyte-test/tb_testproject", } CodeRepo Repository = Repository{ ID: 485473661, HookId: 357884405, Name: "tb_code_testproject", URL: "https://github.com/taubyte-test/tb_code_testproject", } WebsiteRepo Repository = Repository{ ID: 485476045, HookId: 357896781, Name: "tb_website_testwebsite", URL: "https://github.com/taubyte-test/tb_website_testwebsite", } LibraryRepo Repository = Repository{ ID: 495584539, HookId: 359684755, Name: "tb_library_testLibrary", URL: "https://github.com/taubyte-test/tb_library_testLibrary", } )
View Source
var CodePayload []byte
View Source
var ConfigPayload []byte
View Source
var LibraryPayload []byte
View Source
var TemplatePayload []byte
View Source
var UrlPrefix = "http://" + dreamlandCommon.DefaultHost
View Source
var WebsitePayload []byte
Functions ¶
func CreateHttpClient ¶
func RegisterTestDomain ¶
func RegisterTestProject ¶
func RegisterTestRepositories ¶
func RegisterTestRepositories(ctx context.Context, mockAuthURL string, repos ...Repository) (err error)
Types ¶
Click to show internal directories.
Click to hide internal directories.