gitlabbuildtrigger

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 GitLabBuildTriggerFieldGroup

type GitLabBuildTriggerFieldGroup struct {
	FeatureBuildSupport bool                       `default:"false" validate:"" json:"FEATURE_BUILD_SUPPORT" yaml:"FEATURE_BUILD_SUPPORT"`
	FeatureGitlabBuild  bool                       `default:"false" validate:"" json:"FEATURE_GITLAB_BUILD" yaml:"FEATURE_GITLAB_BUILD"`
	GitlabTriggerConfig *GitlabTriggerConfigStruct `default:"" validate:"" json:"GITLAB_TRIGGER_CONFIG,omitempty" yaml:"GITLAB_TRIGGER_CONFIG,omitempty"`
}

GitLabBuildTriggerFieldGroup represents the GitLabBuildTriggerFieldGroup config fields

func NewGitLabBuildTriggerFieldGroup

func NewGitLabBuildTriggerFieldGroup(fullConfig map[string]interface{}) (*GitLabBuildTriggerFieldGroup, error)

NewGitLabBuildTriggerFieldGroup creates a new GitLabBuildTriggerFieldGroup

func (*GitLabBuildTriggerFieldGroup) Fields

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

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

func (*GitLabBuildTriggerFieldGroup) Validate

Validate checks the configuration settings for this field group

type GitlabTriggerConfigStruct

type GitlabTriggerConfigStruct struct {
	GitlabEndpoint string `default:"https://gitlab.com/" validate:"" json:"GITLAB_ENDPOINT,omitempty" yaml:"GITLAB_ENDPOINT,omitempty"`
	ClientId       string `default:"" validate:"" json:"CLIENT_ID,omitempty" yaml:"CLIENT_ID,omitempty"`
	ClientSecret   string `default:"" validate:"" json:"CLIENT_SECRET,omitempty" yaml:"CLIENT_SECRET,omitempty"`
}

GitlabTriggerConfigStruct represents the GitlabTriggerConfigStruct config fields

func NewGitlabTriggerConfigStruct

func NewGitlabTriggerConfigStruct(fullConfig map[string]interface{}) (*GitlabTriggerConfigStruct, error)

NewGitlabTriggerConfigStruct creates a new GitlabTriggerConfigStruct

Jump to

Keyboard shortcuts

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