helpers

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

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 CreateHttpClient() *http.Client

func MakeTemplate

func MakeTemplate(id int, fullname string, branch string) ([]byte, error)

func PushJob

func PushJob(gitPayload []byte, patrickURL string, repo Repository) error

func RegisterTestDomain

func RegisterTestDomain(ctx context.Context, mockAuthURL string) (err error)

func RegisterTestProject

func RegisterTestProject(ctx context.Context, mockAuthURL string) (err error)

func RegisterTestRepositories

func RegisterTestRepositories(ctx context.Context, mockAuthURL string, repos ...Repository) (err error)

Types

type Repository

type Repository struct {
	ID       int
	Name     string
	HookInfo patrick.Meta
	HookId   int64
	URL      string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL