Documentation ¶
Index ¶
- type Binary
- type BinaryUI
- type Meta
- type Project
- func (p *Project) AddBinary(version, fileName, checksum, checksumType string)
- func (p *Project) ConvertToJSON() (string, error)
- func (p *Project) DeleteRelease(version string)
- func (p *Project) GetName() string
- func (p *Project) GetURL() string
- func (p *Project) GetUUID() string
- func (p *Project) LoadFromJSON(data []byte) (bool, error)
- func (p *Project) SetName(name string)
- func (p *Project) SetRelease(version string, createdAt time.Time)
- func (p *Project) SetURL(url string)
- func (p *Project) SetUUID(uuid string)
- type ProjectUI
- type Release
- type ReleasePath
- type ReleaseRequest
- type ReleaseUI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary struct { FileName string `json:"file_name"` Checksum string `json:"checksum"` ChecksumType string `json:"checksum_type"` }
Binary struct
type Project ¶
type Project struct { Name string `json:"name"` UUID string `json:"uuid"` URL string `json:"url"` Releases map[string]*Release `json:"releases"` Meta *Meta `json:"meta"` }
Project struct
func (*Project) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Project) DeleteRelease ¶
DeleteRelease deletes a release
func (*Project) LoadFromJSON ¶
LoadFromJSON update object from json
func (*Project) SetRelease ¶
SetRelease sets a new release or update old one
type ProjectUI ¶
type ProjectUI struct { Name string `json:"name"` LatestRelease string `json:"latest_release"` CurrentRelease string `json:"current_release"` Releases map[string]ReleaseUI `json:"releases"` }
ProjectUI struct
type Release ¶
type Release struct { Version string `json:"version"` CreatedAt time.Time `json:"created_at"` Binaries []*Binary `json:"binaries"` }
Release struct
type ReleasePath ¶
ReleasePath struct
func (*ReleasePath) ConvertToJSON ¶
func (r *ReleasePath) ConvertToJSON() (string, error)
ConvertToJSON converts object to json
func (*ReleasePath) LoadFromJSON ¶
func (r *ReleasePath) LoadFromJSON(data []byte) (bool, error)
LoadFromJSON load object from json
type ReleaseRequest ¶
ReleaseRequest struct
func (*ReleaseRequest) ConvertToJSON ¶
func (r *ReleaseRequest) ConvertToJSON() (string, error)
ConvertToJSON converts object to json
func (*ReleaseRequest) LoadFromJSON ¶
func (r *ReleaseRequest) LoadFromJSON(data []byte) (bool, error)
LoadFromJSON load object from json
Click to show internal directories.
Click to hide internal directories.