setlicense

package
v1.32.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Name = config.Name("setlicense")

Variables

View Source
var Module = fx.Module("setlicense",
	fx.Provide(
		fx.Annotate(
			New,
			fx.As(new(drift.Detector)),
			fx.ResultTags(`group:"syncers"`),
		),
	),
	planner.FxOption(planner.WithFilesAllowedNoMagicString("LICENSE")),
)

Functions

This section is empty.

Types

type Config

type Config struct {
	License string `yaml:"license"`
}

type Syncer

type Syncer struct {
	// contains filtered or unexported fields
}

func New

func New(logger *zapctx.Logger) *Syncer

func (*Syncer) DetectDrift added in v1.7.0

func (l *Syncer) DetectDrift(ctx context.Context, runData *drift.RunData) (*files.System[*files.StateWithChangeReason], error)

func (*Syncer) Name

func (l *Syncer) Name() config.Name

func (*Syncer) Priority

func (l *Syncer) Priority() drift.Priority

Jump to

Keyboard shortcuts

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