skip

package
v1.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSkipped = []string{"branch_protection"}

DefaultSkipped lists resource types that are skipped unless the user explicitly opts in via --include. Currently contains branch_protection because the gitlabhq/gitlab provider's Read does not populate unprotect_access_level into state on Free tier, causing perpetual ForceNew drift on every plan.

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",
	"schedules",
	"branch_protection",
	"service_accounts",
	"job_token_scopes",
}

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 Resolve added in v1.10.0

func Resolve(skipInput, includeInput []string) (Set, []string)

Resolve combines --skip values with default-skipped resources, with --include allowing opt-in for any of the defaults. Returns the resolved skip set and warnings for unknown names from either input.

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