Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchRequest ¶
type BatchRequest struct { OS string Arch string Plugins []*BatchRequestPlugin }
func (*BatchRequest) GetOSArch ¶
func (b *BatchRequest) GetOSArch() string
func (*BatchRequest) Validate ¶
func (b *BatchRequest) Validate() error
type BatchRequestPlugin ¶
type BatchResponse ¶
type BatchResponse struct { OS string Arch string Plugins BatchResponsePlugins DownloadHash string DownloadURL string DownloadChecksum string }
func NewBatchResponse ¶
func NewBatchResponse(req *BatchRequest, plugins BatchResponsePlugins) *BatchResponse
func (*BatchResponse) CalculateHash ¶
func (b *BatchResponse) CalculateHash()
func (*BatchResponse) GetOSArch ¶
func (b *BatchResponse) GetOSArch() string
func (*BatchResponse) Hash ¶
func (b *BatchResponse) Hash() []byte
func (*BatchResponse) VerifyHash ¶
func (b *BatchResponse) VerifyHash() bool
type BatchResponsePlugin ¶
type BatchResponsePlugin struct { *BatchRequestPlugin Version string FileName string URL string Checksum string }
func NewBatchResponsePlugin ¶
func NewBatchResponsePlugin(req *BatchRequestPlugin) *BatchResponsePlugin
func (*BatchResponsePlugin) Hash ¶
func (b *BatchResponsePlugin) Hash() []byte
func (*BatchResponsePlugin) String ¶
func (b *BatchResponsePlugin) String() string
type BatchResponsePlugins ¶
type BatchResponsePlugins []*BatchResponsePlugin
func (BatchResponsePlugins) Has ¶
func (b BatchResponsePlugins) Has(fullName string) bool
func (BatchResponsePlugins) Hash ¶
func (b BatchResponsePlugins) Hash() []byte
func (BatchResponsePlugins) Len ¶
func (b BatchResponsePlugins) Len() int
func (BatchResponsePlugins) Less ¶
func (b BatchResponsePlugins) Less(i, j int) bool
func (BatchResponsePlugins) Swap ¶
func (b BatchResponsePlugins) Swap(i, j int)
type PluginAsset ¶
type PluginRelease ¶
Click to show internal directories.
Click to hide internal directories.