config

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugins = plugin.Plugins{
	{
		Type: "provider",
		Name: "github",
		Repo: "go-semantic-release/provider-github",
	},
	{
		Type: "provider",
		Name: "gitlab",
		Repo: "go-semantic-release/provider-gitlab",
	},
	{
		Type: "changelog-generator",
		Name: "default",
		Repo: "go-semantic-release/changelog-generator-default",
	},
	{
		Type:    "commit-analyzer",
		Name:    "cz",
		Aliases: []string{"default"},
		Repo:    "go-semantic-release/commit-analyzer-cz",
	},
	{
		Type: "condition",
		Name: "default",
		Repo: "go-semantic-release/condition-default",
	},
	{
		Type: "condition",
		Name: "github",
		Repo: "go-semantic-release/condition-github",
	},
	{
		Type: "condition",
		Name: "gitlab",
		Repo: "go-semantic-release/condition-gitlab",
	},
	{
		Type: "files-updater",
		Name: "npm",
		Repo: "go-semantic-release/files-updater-npm",
	},
	{
		Type: "provider",
		Name: "git",
		Repo: "go-semantic-release/provider-git",
	},
	{
		Type: "condition",
		Name: "bitbucket",
		Repo: "go-semantic-release/condition-bitbucket",
	},
	{
		Type: "files-updater",
		Name: "helm",
		Repo: "go-semantic-release/files-updater-helm",
	},
	{
		Type: "hooks",
		Name: "goreleaser",
		Repo: "go-semantic-release/hooks-goreleaser",
	},
	{
		Type: "hooks",
		Name: "npm-binary-releaser",
		Repo: "go-semantic-release/hooks-npm-binary-releaser",
	},
	{
		Type: "hooks",
		Name: "plugin-registry-update",
		Repo: "go-semantic-release/hooks-plugin-registry-update",
	},
	{
		Type: "hooks",
		Name: "exec",
		Repo: "go-semantic-release/hooks-exec",
	},
}

Functions

This section is empty.

Types

type ServerConfig

type ServerConfig struct {
	Stage                       string `envconfig:"STAGE" default:"dev"`
	ProjectID                   string `envconfig:"GOOGLE_CLOUD_PROJECT_ID" default:"go-semantic-release"`
	Port                        string `envconfig:"PORT" default:"8080"`
	BindAddress                 string `envconfig:"BIND_ADDRESS"`
	GitHubToken                 string `envconfig:"GITHUB_TOKEN" required:"true"`
	AdminAccessToken            string `envconfig:"ADMIN_ACCESS_TOKEN"`
	CloudflareR2Bucket          string `envconfig:"CLOUDFLARE_R2_BUCKET" required:"true"`
	CloudflareR2AccessKeyID     string `envconfig:"CLOUDFLARE_R2_ACCESS_KEY_ID" required:"true"`
	CloudflareR2SecretAccessKey string `envconfig:"CLOUDFLARE_R2_SECRET_ACCESS_KEY" required:"true"`
	CloudflareAccountID         string `envconfig:"CLOUDFLARE_ACCOUNT_ID" required:"true"`
	PluginCacheHost             string `envconfig:"PLUGIN_CACHE_HOST" required:"true"`
	DisableRequestCache         bool   `envconfig:"DISABLE_REQUEST_CACHE"`
	Version                     string
	DisableMetrics              bool `envconfig:"DISABLE_METRICS"`
}

func NewServerConfigFromEnv

func NewServerConfigFromEnv() (*ServerConfig, error)

func (*ServerConfig) CreateGitHubClient

func (s *ServerConfig) CreateGitHubClient() *github.Client

func (*ServerConfig) CreateS3Client

func (s *ServerConfig) CreateS3Client() (*s3.Client, error)

func (*ServerConfig) GetBucket

func (s *ServerConfig) GetBucket() *string

func (*ServerConfig) GetPublicPluginCacheDownloadURL

func (s *ServerConfig) GetPublicPluginCacheDownloadURL(path string) string

func (*ServerConfig) GetServerAddr

func (s *ServerConfig) GetServerAddr() string

Jump to

Keyboard shortcuts

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