func ResolveArtifact(p *Packer, s string) (oci.Artifact, error)
ResolveArtifact resolves a string to an artifact. The string may be a path to a pallet source on disk or a reference to an artifact in the local cache or remote repository.
type Applier struct { // K8s client and inventory for working with base layers during applying of // unpacked resources, instantiated via Initialize() based on bound and parsed // configuration values. Klient client.Client ResourceManager *sap.ResourceManager // K8s client and inventory for working with infra layers during applying of // unpacked resources, instantiated via Initialize() based on bound and parsed // configuration values. InfraKlient client.Client InfraResourceManager *sap.ResourceManager // contains filtered or unexported fields }
func NewApplier() *Applier
func (a *Applier) Apply(ctx context.Context, artifact oci.Artifact, opts ...unpack.Option) error
func (a *Applier) ApplyOpts() sap.ApplyOptions
func (a *Applier) BeforeRun(ctx context.Context, r sink.Run) (context.Context, sink.Run, error)
TODO: refactor, WithKlient alone would be preferred for some use cases
func (a *Applier) Info(r sink.Run)
func (a *Applier) RegisterFlags(fs *rags.RagSet)
RegisterFlags binds all of the flags needed for applying and managing pallets applied via `lift`
func (a *Applier) WaitOpts() sap.WaitOptions
type Packer struct { Tags []string // embedded instance of package builder, computed after flags are parsed *pack.Packer Config *lift.Config // contains filtered or unexported fields }
func NewPacker(cfg lift.Config) *Packer
func (p *Packer) BeforeRun(ctx context.Context, r sink.Run) (context.Context, sink.Run, error)
func (p *Packer) RegisterFlags(fs *rags.RagSet)
type Unpacker struct { Provider cluster.Provider RenderingParams map[string]string // contains filtered or unexported fields }
func NewUnpacker(p []lift.Parameter) *Unpacker
func (u *Unpacker) BeforeRun(ctx context.Context, r sink.Run) (context.Context, sink.Run, error)
func (u *Unpacker) Info(r sink.Run)
func (u *Unpacker) LayerKeys() []string
LayerKeys returns the keys for the layers that will be unpacked
func (u *Unpacker) Options() []unpack.Option
func (u *Unpacker) RegisterFlags(fs *rags.RagSet)
func (u *Unpacker) RenderOption() unpack.Option
Name | Synopsis |
---|---|
.. |