policy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaProjectID     = "project_id"
	SchemaEnabled       = "enabled"
	SchemaBlocking      = "blocking"
	SchemaSettings      = "settings"
	SchemaScope         = "scope"
	SchemaRepositoryID  = "repository_id"
	SchemaRepositoryRef = "repository_ref"
	SchemaMatchType     = "match_type"
)

Keys for schema elements

Variables

View Source
var (
	NoActiveComments = uuid.MustParse("c6a1889d-b943-4856-b76f-9e46bb6b0df2")
	MinReviewerCount = uuid.MustParse("fa4e907d-c16b-4a4c-9dfa-4906e5d171dd")
	BuildValidation  = uuid.MustParse("0609b952-1397-4640-95ec-e00a01b2c241")
)

Policy type IDs. These are global and can be listed using the following endpoint:

https://docs.microsoft.com/en-us/rest/api/azure/devops/policy/types/list?view=azure-devops-rest-5.1

Functions

func ResourceBranchPolicyBuildValidation

func ResourceBranchPolicyBuildValidation() *schema.Resource

ResourceBranchPolicyBuildValidation schema and implementation for build validation policy resource

func ResourceBranchPolicyMinReviewers

func ResourceBranchPolicyMinReviewers() *schema.Resource

ResourceBranchPolicyMinReviewers schema and implementation for min reviewer policy resource

Types

This section is empty.

Jump to

Keyboard shortcuts

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