Documentation ¶
Index ¶
- Constants
- func CheckBoolFieldEqual(field string, got bool, want bool) error
- func CheckFieldEqual(field string, got string, want string) error
- func CheckFieldEqualAndSet(field string, got string, want string) error
- func CheckFieldSet(field string, got string) error
- func CheckGroup(group *buddy.Group, name string, desc string, assignToProjects bool, ...) error
- func CheckGroups(groups *buddy.Groups, count int) error
- func CheckIntFieldEqual(field string, got int, want int) error
- func CheckIntFieldEqualAndSet(field string, got int, want int) error
- func CheckIntFieldSet(field string, got int) error
- func CheckIntegration(integration *buddy.Integration, expected *buddy.Integration, ...) error
- func CheckIntegrations(integrations *buddy.Integrations, count int) error
- func CheckMember(member *buddy.Member, email string, name string, assignToProject bool, ...) error
- func CheckMembers(members *buddy.Members, count int) error
- func CheckPermission(permission *buddy.Permission, name string, desc string, id int, ...) error
- func CheckPermissions(permissions *buddy.Permissions, count int) error
- func CheckPipeline(project *buddy.Project, pipeline *buddy.Pipeline, expected *buddy.Pipeline, ...) error
- func CheckPipelines(pipelines *buddy.Pipelines, count int) error
- func CheckProfile(profile *buddy.Profile, name string) error
- func CheckProject(project *buddy.Project, name string, displayName string, short bool, ...) error
- func CheckProjectGroup(projectGroup *buddy.ProjectGroup, group *buddy.Group, ...) error
- func CheckProjectMember(projectMember *buddy.ProjectMember, member *buddy.Member, ...) error
- func CheckProjects(projects *buddy.Projects, count int) error
- func CheckPublicKey(key *buddy.PublicKey, title string, content string, id int) error
- func CheckSourceContentsDir(sc *buddy.SourceContents, count int) error
- func CheckSourceContentsFile(sc *buddy.SourceContents, name string, path string) error
- func CheckSourceFile(sf *buddy.SourceFile, name string, path string, message string) error
- func CheckSso(sso *buddy.Sso, ssoUrl string, issuer string, certificate string, ...) error
- func CheckStringArrayEqual(field string, got []string, want []string) error
- func CheckToken(token *buddy.Token, name string, expiresIn int, expiresAt string, ...) error
- func CheckTokens(tokens *buddy.Tokens, count int) error
- func CheckVariable(variable *buddy.Variable, key string, val string, typ string, desc string, ...) error
- func CheckVariables(variables *buddy.Variables, count int) error
- func CheckWebhook(webhook *buddy.Webhook, targetUrl string, secretKey string, projectName string, ...) error
- func CheckWebhooks(webhooks *buddy.Webhooks, count int) error
- func CheckWorkspace(workspace *buddy.Workspace, name string, domain string, id int) error
- func CheckWorkspaces(workspaces *buddy.Workspaces, atLeast int) error
- func ErrorFieldEmpty(field string) error
- func ErrorFieldFormatted(field string, got string, want string) error
- func ErrorFormatted(msg string, err error) error
- func GenerateCertificate() (error, string)
- func GenerateRsaKeyPair() (error, string, string)
- func GetClient() (*buddy.Client, error)
- func RandEmail() string
- func RandString(strlen int) string
- func RandStringFromCharSet(strlen int, charSet string) string
- func UniqueString() string
- type Seed
- type SeedOps
Constants ¶
View Source
const (
CharSetAlpha = "abcdefghijklmnopqrstuvwxyz"
)
Variables ¶
This section is empty.
Functions ¶
func CheckFieldEqualAndSet ¶
func CheckFieldSet ¶
func CheckGroup ¶
func CheckIntFieldSet ¶
func CheckIntegration ¶
func CheckIntegration(integration *buddy.Integration, expected *buddy.Integration, ops *buddy.IntegrationOps) error
func CheckIntegrations ¶
func CheckIntegrations(integrations *buddy.Integrations, count int) error
func CheckMember ¶
func CheckPermission ¶
func CheckPermissions ¶
func CheckPermissions(permissions *buddy.Permissions, count int) error
func CheckPipeline ¶ added in v1.0.1
func CheckPipelines ¶ added in v1.0.1
func CheckProject ¶
func CheckProjectGroup ¶
func CheckProjectGroup(projectGroup *buddy.ProjectGroup, group *buddy.Group, permission *buddy.Permission) error
func CheckProjectMember ¶
func CheckProjectMember(projectMember *buddy.ProjectMember, member *buddy.Member, permission *buddy.Permission) error
func CheckPublicKey ¶
func CheckSourceContentsDir ¶
func CheckSourceContentsDir(sc *buddy.SourceContents, count int) error
func CheckSourceContentsFile ¶
func CheckSourceContentsFile(sc *buddy.SourceContents, name string, path string) error
func CheckSourceFile ¶
func CheckStringArrayEqual ¶ added in v1.10.0
func CheckToken ¶ added in v1.10.0
func CheckVariable ¶
func CheckWebhook ¶
func CheckWorkspace ¶
func CheckWorkspaces ¶
func CheckWorkspaces(workspaces *buddy.Workspaces, atLeast int) error
func ErrorFieldEmpty ¶
func ErrorFormatted ¶
func GenerateCertificate ¶ added in v1.9.0
func GenerateRsaKeyPair ¶ added in v1.5.0
func RandString ¶
func RandStringFromCharSet ¶
func UniqueString ¶
func UniqueString() string
Types ¶
type Seed ¶
type Seed struct { Client *buddy.Client Workspace *buddy.Workspace Project *buddy.Project Group *buddy.Group Member *buddy.Member Permission *buddy.Permission Permission2 *buddy.Permission GitIntegration *buddy.Integration }
func SeedInitialData ¶
Click to show internal directories.
Click to hide internal directories.