satellite

package
v0.0.0-...-a7a3543 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SatelliteClientKey = "satellite_client"
View Source
const SatelliteHostIDPrefix = "satellite_hostname::"

Variables

View Source
var ConfigSchema = map[string]*schema.Attribute{
	"endpoint": {
		Type: schema.TypeString,
	},
	"username": {
		Type: schema.TypeString,
	},
	"password": {
		Type: schema.TypeString,
	},
	"organisation": {
		Type: schema.TypeString,
	},
	"location": {
		Type: schema.TypeString,
	},
	"trace_level": {
		Type: schema.TypeString,
	},
}
View Source
var ErrNotImplemented = errors.New("not implemented")

Functions

func ConfigInstance

func ConfigInstance() interface{}

func GetConfig

func GetConfig(connection *plugin.Connection) satelliteConfig

GetConfig :: retrieve and cast connection config from query data

func ParseNVRA

func ParseNVRA(nvra string) (name string, ver string, rel string, arch string, err error)

ParseNVRA returns name, version, release, arch from an RPM NVREA e.g.: - foo-1.0-1.i386.rpm returns foo, 1.0, 1, i386 - bar-9-123a.ia64.rpm returns bar, 9, 123a, 1, ia64 This is the Golang porting of the official implementation in Python's in rpmUtils.miscutils.

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

func ToTime

func ToTime(ctx context.Context, d *transform.TransformData) (any, error)

Types

type Time

type Time time.Time

func (*Time) IsZero

func (t *Time) IsZero() bool

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Time) String

func (t *Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

Jump to

Keyboard shortcuts

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