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 ¶
- Variables
- type Artifact
- func (a *Artifact) Create() error
- func (a *Artifact) Delete() error
- func (a Artifact) GetData() interface{}
- func (a Artifact) GetID() string
- func (a Artifact) GetRelationships() map[string]interface{}
- func (r Artifact) GetType() string
- func (a *Artifact) SetData(to func(target interface{}) error) error
- func (a *Artifact) SetID(id string) error
- func (a *Artifact) SetType(t string) error
- func (a *Artifact) Upload(reader io.Reader) error
- type Constraint
- type Constraints
- type Entitlement
- type Error
- type Package
- func (p *Package) Get() error
- func (p Package) GetData() interface{}
- func (p Package) GetID() string
- func (p Package) GetRelationships() map[string]interface{}
- func (p Package) GetType() string
- func (p *Package) SetData(to func(target interface{}) error) error
- func (p *Package) SetID(id string) error
- func (p *Package) SetType(t string) error
- type Release
- func (r *Release) Create() error
- func (r *Release) Delete() error
- func (r *Release) Get() error
- func (r Release) GetData() interface{}
- func (r Release) GetID() string
- func (r Release) GetRelationships() map[string]interface{}
- func (r Release) GetType() string
- func (r *Release) Publish() error
- func (r *Release) SetData(to func(target interface{}) error) error
- func (r *Release) SetID(id string) error
- func (r *Release) SetType(t string) error
- func (r *Release) Update() error
- func (r *Release) Yank() error
Constants ¶
This section is empty.
Variables ¶
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:"-"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
// contains filtered or unexported fields
}
Artifact represents a Keygen artifact object.
func (Artifact) GetRelationships ¶
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 Package ¶
type Package struct {
ID string `json:"-"`
Type string `json:"-"`
Name *string `json:"name,omitempty"`
Key *string `json:"key,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
ProductID string `json:"-"`
}
func (Package) GetRelationships ¶
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) GetRelationships ¶
Click to show internal directories.
Click to hide internal directories.