ociinstaller

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: AGPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MediaTypeDbDocLayer       = "application/vnd.turbot.steampipe.db.doc.layer.v1+text"
	MediaTypeDbLicenseLayer   = "application/vnd.turbot.steampipe.db.license.layer.v1+text"
	MediaTypeFdwDocLayer      = "application/vnd.turbot.steampipe.fdw.doc.layer.v1+text"
	MediaTypeFdwLicenseLayer  = "application/vnd.turbot.steampipe.fdw.license.layer.v1+text"
	MediaTypeFdwControlLayer  = "application/vnd.turbot.steampipe.fdw.control.layer.v1+text"
	MediaTypeFdwSqlLayer      = "application/vnd.turbot.steampipe.fdw.sql.layer.v1+text"
	MediaTypeAssetReportLayer = "application/vnd.turbot.steampipe.assets.report.layer.v1+tar"
)

Steampipe Media Types

View Source
const (
	ImageTypeDatabase ociinstaller.ImageType = "db"
	ImageTypeFdw      ociinstaller.ImageType = "fdw"
	ImageTypeAssets   ociinstaller.ImageType = "assets"
)

Variables

This section is empty.

Functions

func InstallAssets

func InstallAssets(ctx context.Context, assetsLocation string) error

InstallAssets installs the Steampipe report server assets

func InstallDB

func InstallDB(ctx context.Context, dblocation string) (string, error)

InstallDB :: Install Postgres files fom OCI image

func InstallFdw

func InstallFdw(ctx context.Context, dbLocation string) (string, error)

InstallFdw installs the Steampipe Postgres foreign data wrapper from an OCI image

Types

type FdwImageConfig added in v1.0.0

type FdwImageConfig struct {
	ociinstaller.OciConfigBase
	Fdw struct {
		Name         string `json:"name,omitempty"`
		Organization string `json:"organization,omitempty"`
		Version      string `json:"version"`
	}
}

type SteampipeMediaTypeProvider added in v1.0.0

type SteampipeMediaTypeProvider struct{}

func (SteampipeMediaTypeProvider) ConfigMediaTypes added in v1.0.0

func (SteampipeMediaTypeProvider) ConfigMediaTypes() []string

ConfigMediaTypes :: returns media types for OCI $config data ( in the config, not a layer)

func (SteampipeMediaTypeProvider) GetAllMediaTypes added in v1.0.0

func (p SteampipeMediaTypeProvider) GetAllMediaTypes(imageType ociinstaller.ImageType) ([]string, error)

func (SteampipeMediaTypeProvider) MediaTypeForPlatform added in v1.0.0

func (SteampipeMediaTypeProvider) MediaTypeForPlatform(imageType ociinstaller.ImageType) ([]string, error)

MediaTypeForPlatform returns media types for binaries for this OS and architecture and it's fallbacks in order of priority

func (SteampipeMediaTypeProvider) SharedMediaTypes added in v1.0.0

func (SteampipeMediaTypeProvider) SharedMediaTypes(imageType ociinstaller.ImageType) []string

SharedMediaTypes returns media types that are NOT specific to the os and arch (readmes, control files, etc)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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