...

Package internal

import "edge-infra.dev/pkg/f8n/warehouse/lift/cmd/internal"
Overview
Index
Subdirectories

Overview ▾

func ResolveArtifact

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

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

func NewApplier() *Applier

func (*Applier) Apply

func (a *Applier) Apply(ctx context.Context, artifact oci.Artifact, opts ...unpack.Option) error

func (*Applier) ApplyOpts

func (a *Applier) ApplyOpts() sap.ApplyOptions

func (*Applier) BeforeRun

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 (*Applier) Info

func (a *Applier) Info(r sink.Run)

func (*Applier) RegisterFlags

func (a *Applier) RegisterFlags(fs *rags.RagSet)

RegisterFlags binds all of the flags needed for applying and managing pallets applied via `lift`

func (*Applier) WaitOpts

func (a *Applier) WaitOpts() sap.WaitOptions

type Packer

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

func NewPacker(cfg lift.Config) *Packer

func (*Packer) BeforeRun

func (p *Packer) BeforeRun(ctx context.Context, r sink.Run) (context.Context, sink.Run, error)

func (*Packer) RegisterFlags

func (p *Packer) RegisterFlags(fs *rags.RagSet)

type Unpacker

type Unpacker struct {
    Provider cluster.Provider

    RenderingParams map[string]string
    // contains filtered or unexported fields
}

func NewUnpacker

func NewUnpacker(p []lift.Parameter) *Unpacker

func (*Unpacker) BeforeRun

func (u *Unpacker) BeforeRun(ctx context.Context, r sink.Run) (context.Context, sink.Run, error)

func (*Unpacker) Info

func (u *Unpacker) Info(r sink.Run)

func (*Unpacker) LayerKeys

func (u *Unpacker) LayerKeys() []string

LayerKeys returns the keys for the layers that will be unpacked

func (*Unpacker) Options

func (u *Unpacker) Options() []unpack.Option

func (*Unpacker) RegisterFlags

func (u *Unpacker) RegisterFlags(fs *rags.RagSet)

func (*Unpacker) RenderOption

func (u *Unpacker) RenderOption() unpack.Option

Subdirectories

Name Synopsis
..