keygenext

package
v0.0.0-...-8ef9bac Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

keygenext is an internal package that allows us to create a separate shadow instance of keygen that can be used for the end-user, since the main package is used for CLI auto-upgrades.

Index

Constants

This section is empty.

Variables

View Source
var (
	Account     string
	Environment string
	Product     string
	Token       string
	PublicKey   string
	UserAgent   string
	APIURL      string
)

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	ID        string `json:"-"`
	Type      string `json:"-"`
	Filename  string `json:"filename,omitempty"`
	Filetype  string `json:"filetype,omitempty"`
	Filesize  int64  `json:"filesize,omitempty"`
	Platform  string `json:"platform,omitempty"`
	Arch      string `json:"arch,omitempty"`
	Signature string `json:"signature,omitempty"`
	Checksum  string `json:"checksum,omitempty"`
	ReleaseID string `json:"-"`
	// contains filtered or unexported fields
}

Artifact represents a Keygen artifact object.

func (*Artifact) Create

func (a *Artifact) Create() error

func (Artifact) GetData

func (a Artifact) GetData() interface{}

func (Artifact) GetID

func (a Artifact) GetID() string

func (Artifact) GetRelationships

func (a Artifact) GetRelationships() map[string]interface{}

func (Artifact) GetType

func (r Artifact) GetType() string

func (*Artifact) SetData

func (a *Artifact) SetData(to func(target interface{}) error) error

func (*Artifact) SetID

func (a *Artifact) SetID(id string) error

func (*Artifact) SetType

func (a *Artifact) SetType(t string) error

func (*Artifact) Upload

func (a *Artifact) Upload(reader io.Reader) error

type Constraint

type Constraint struct {
	ID            string `json:"-"`
	Type          string `json:"-"`
	EntitlementID string `json:"-"`
}

func (Constraint) GetData

func (c Constraint) GetData() interface{}

func (Constraint) GetID

func (c Constraint) GetID() string

func (Constraint) GetRelationships

func (c Constraint) GetRelationships() map[string]interface{}

func (Constraint) GetType

func (c Constraint) GetType() string

func (Constraint) UseExperimentalEmbeddedRelationshipData

func (c Constraint) UseExperimentalEmbeddedRelationshipData() bool

type Constraints

type Constraints []Constraint

func (Constraints) From

func (c Constraints) From(entitlements []string) Constraints

func (Constraints) GetData

func (c Constraints) GetData() interface{}

type Entitlement

type Entitlement struct {
	keygen.Entitlement
}

func (*Entitlement) Get

func (e *Entitlement) Get() error

type Error

type Error struct {
	Title  string
	Detail string
	Code   string
	Source string
	Err    error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type Release

type Release struct {
	ID          string                 `json:"-"`
	Type        string                 `json:"-"`
	Name        *string                `json:"name,omitempty"`
	Description *string                `json:"description,omitempty"`
	Version     string                 `json:"version,omitempty"`
	Tag         *string                `json:"tag"`
	Channel     string                 `json:"channel,omitempty"`
	Metadata    map[string]interface{} `json:"metadata,omitempty"`
	ProductID   string                 `json:"-"`
	PackageID   *string                `json:"-"`
	Constraints Constraints            `json:"-"`
}

func (*Release) Create

func (r *Release) Create() error

func (*Release) Delete

func (r *Release) Delete() error

func (*Release) Get

func (r *Release) Get() error

func (Release) GetData

func (r Release) GetData() interface{}

func (Release) GetID

func (r Release) GetID() string

func (Release) GetRelationships

func (r Release) GetRelationships() map[string]interface{}

func (Release) GetType

func (r Release) GetType() string

func (*Release) Publish

func (r *Release) Publish() error

func (*Release) SetData

func (r *Release) SetData(to func(target interface{}) error) error

func (*Release) SetID

func (r *Release) SetID(id string) error

func (*Release) SetType

func (r *Release) SetType(t string) error

func (*Release) Update

func (r *Release) Update() error

func (*Release) Yank

func (r *Release) Yank() error

Jump to

Keyboard shortcuts

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