githubbuildtrigger

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubBuildTriggerFieldGroup

type GitHubBuildTriggerFieldGroup struct {
	FeatureBuildSupport bool                       `default:"false" validate:"" json:"FEATURE_BUILD_SUPPORT" yaml:"FEATURE_BUILD_SUPPORT"`
	FeatureGithubBuild  bool                       `default:"false" validate:"" json:"FEATURE_GITHUB_BUILD" yaml:"FEATURE_GITHUB_BUILD"`
	GithubTriggerConfig *GithubTriggerConfigStruct `default:"" validate:"" json:"GITHUB_TRIGGER_CONFIG,omitempty" yaml:"GITHUB_TRIGGER_CONFIG,omitempty"`
}

GitHubBuildTriggerFieldGroup represents the GitHubBuildTriggerFieldGroup config fields

func NewGitHubBuildTriggerFieldGroup

func NewGitHubBuildTriggerFieldGroup(fullConfig map[string]interface{}) (*GitHubBuildTriggerFieldGroup, error)

NewGitHubBuildTriggerFieldGroup creates a new GitHubBuildTriggerFieldGroup

func (*GitHubBuildTriggerFieldGroup) Fields

func (fg *GitHubBuildTriggerFieldGroup) Fields() []string

Fields returns a list of strings representing the fields in this field group

func (*GitHubBuildTriggerFieldGroup) Validate

Validate checks the configuration settings for this field group

type GithubTriggerConfigStruct

type GithubTriggerConfigStruct struct {
	AllowedOrganizations []interface{} `default:"[]" validate:"" json:"ALLOWED_ORGANIZATIONS,omitempty" yaml:"ALLOWED_ORGANIZATIONS,omitempty"`
	OrgRestrict          bool          `default:"false" validate:"" json:"ORG_RESTRICT" yaml:"ORG_RESTRICT"`
	ApiEndpoint          string        `default:"" validate:"" json:"API_ENDPOINT,omitempty" yaml:"API_ENDPOINT,omitempty"`
	ClientSecret         string        `default:"" validate:"" json:"CLIENT_SECRET,omitempty" yaml:"CLIENT_SECRET,omitempty"`
	GithubEndpoint       string        `default:"" validate:"" json:"GITHUB_ENDPOINT,omitempty" yaml:"GITHUB_ENDPOINT,omitempty"`
	ClientId             string        `default:"" validate:"" json:"CLIENT_ID,omitempty" yaml:"CLIENT_ID,omitempty"`
}

GithubTriggerConfigStruct represents the GithubTriggerConfigStruct config fields

func NewGithubTriggerConfigStruct

func NewGithubTriggerConfigStruct(fullConfig map[string]interface{}) (*GithubTriggerConfigStruct, error)

NewGithubTriggerConfigStruct creates a new GithubTriggerConfigStruct

Jump to

Keyboard shortcuts

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