sonarcloud

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SONARQUBE_PASSWORD = "password"
	SONARQUBE_PATH     = "/.containifyci/metadata.txt"
)
View Source
const (
	// IMAGE = "sonarsource/sonar-scanner-cli"
	// IMAGE = "sonar:latest"
	IMAGE = "containifyci/sonar"
)

Variables

This section is empty.

Functions

func CacheFolder

func CacheFolder() string

func PostRequest

func PostRequest(url, authHeader, data string) (*http.Response, error)

PostRequest performs an HTTP POST request with the given URL, headers, and data.

Types

type HealthCheck

type HealthCheck string

func (HealthCheck) URL

func (h HealthCheck) URL(addr *network.Address) string

type Image

type Image struct {
	Image       string
	Name        string
	HealthCheck HealthCheck
}

type SonarcloudContainer

type SonarcloudContainer struct {
	*container.Container
}

func New

func New() *SonarcloudContainer

func (*SonarcloudContainer) Analyze

func (c *SonarcloudContainer) Analyze(env container.EnvType, token *string, address *network.Address) error

func (*SonarcloudContainer) CopyScript

func (c *SonarcloudContainer) CopyScript() error

func (*SonarcloudContainer) Images

func (c *SonarcloudContainer) Images() []string

func (*SonarcloudContainer) IsAsync added in v0.2.1

func (c *SonarcloudContainer) IsAsync() bool

func (*SonarcloudContainer) Name

func (c *SonarcloudContainer) Name() string

func (*SonarcloudContainer) Pull

func (c *SonarcloudContainer) Pull() error

func (*SonarcloudContainer) Run

func (c *SonarcloudContainer) Run() error

type SonarqubeContainer

type SonarqubeContainer struct {
	*container.Container
	// contains filtered or unexported fields
}

func NewSonarQube

func NewSonarQube() *SonarqubeContainer

func (*SonarqubeContainer) Address

func (c *SonarqubeContainer) Address() *network.Address

func (*SonarqubeContainer) Images

func (c *SonarqubeContainer) Images() []string

func (*SonarqubeContainer) Pull

func (c *SonarqubeContainer) Pull() error

func (*SonarqubeContainer) Setup

func (c *SonarqubeContainer) Setup() (*string, error)

func (*SonarqubeContainer) Start

func (c *SonarqubeContainer) Start() error

func (*SonarqubeContainer) Token

func (c *SonarqubeContainer) Token() *string

Jump to

Keyboard shortcuts

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