skip

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Groups = map[string][]string{
	"premium": {"hooks", "approval_rules", "mr_approvals", "service_accounts"},
}

Groups map a single name to multiple resource types.

View Source
var ResourceTypes = []string{
	"memberships",
	"hooks",
	"labels",
	"variables",
	"approval_rules",
	"mr_approvals",
	"pipeline_schedules",
	"branch_protection",
	"service_accounts",
}

Known resource types that can be skipped.

Functions

This section is empty.

Types

type Set

type Set map[string]bool

Set tracks which resource types should be skipped.

func Parse

func Parse(input []string) (Set, []string)

Parse resolves group names, validates resource type names, and returns the resulting Set plus any unknown names as warnings.

func (Set) Has

func (s Set) Has(name string) bool

Has returns true if the given resource type is in the skip set.

Jump to

Keyboard shortcuts

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