config

package
v0.0.0-...-77e2282 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Copyright (c) 2022, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause

Copyright (c) 2022, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause

Copyright (c) 2022, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause

Copyright (c) 2022, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause

Copyright (c) 2022, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause

Copyright (c) 2022, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause

Copyright (c) 2022, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (err error)

func IsValidScannerName

func IsValidScannerName(name string) bool

Types

type Config

type Config struct {
	GithubApps GithubApps
	SlackApps  SlackApps
	Scanner    Scanner
}

func BuildAppsConfig

func BuildAppsConfig() (Config, error)

type GithubApp

type GithubApp struct {
	ID         int64
	OrgName    string
	Secret     string
	PrivateKey []byte
	InstallID  int64
	SlackAppID SlackAppID
}

type GithubApps

type GithubApps map[GithubOrgName]GithubApp

List of github apps, and their corresponding configs, accessible by the org name

type GithubOrgName

type GithubOrgName string

type Scanner

type Scanner struct {
	Type      string // Can be "binary" or "embedded"
	Name      string // Scanner name is used to identify the scanner and unmarshal the output
	RulesFile string
	Binary    string
	Arguments string // Arguments to pass to the scanner, %s will be replaced with the target folder
}

type SlackApp

type SlackApp struct {
	Id            string
	Channel       string
	Token         string
	SigningSecret string
}

type SlackAppID

type SlackAppID string

type SlackApps

type SlackApps map[SlackAppID]SlackApp

Jump to

Keyboard shortcuts

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