ci

package
v1.14.3-ci Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersonalAccessToken

func PersonalAccessToken(token string, pluginType string)

func ResultTable

func ResultTable(cdx *cyclonedx.BOM) string

Result Table

func Run

func Run(cdx *cyclonedx.BOM, secrets interface{})

func SavePluginRepository

func SavePluginRepository(bom *cyclonedx.BOM, repoName string, pluginName string, start time.Time, secrets interface{})

func SecretTable

func SecretTable(secrets []types.Secret) string

Secret Table

func TallyTable

func TallyTable(tally []ComponentTally) string

Types

type ComponentTally

type ComponentTally struct {
	ComponentType string
	Count         int
}

func Evaluate

func Evaluate(cdx *cyclonedx.BOM) []ComponentTally

type PluginRepo

type PluginRepo struct {
	PersonalAccessTokenID string `gorm:"column:personal_access_token_id;" json:",omitempty"`
	RepoName              string `gorm:"column:repo_name;" json:",omitempty"`
	PluginType            string `gorm:"foreignkey:plugin_type" json:",omitempty"`
}

type Table

type Table struct {
	Component *cyclonedx.Component
	Type      string
}

type TokenCheckResponse

type TokenCheckResponse struct {
	Expired     bool `json:"expired"`
	Permissions []struct {
		Label       string   `json:"label"`
		Permissions []string `json:"permissions"`
	} `json:"permissions"`
	PersonalAccessTokenId string `json:"personalAccessTokenId"`
}

Jump to

Keyboard shortcuts

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