Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestApi ¶
type RestApi interface {
QueryRolesByName(roleName rolesfile.RoleName) (RoleQueryResponse, error)
}
func NewRestApi ¶
func NewRestApi(restClient restclient.RestClient, baseUrl string) (RestApi, error)
type RoleQueryResponse ¶
type RoleQueryResponse struct {
Results []RoleQueryResult `json:"results"`
}
func ParseRoleQueryResponse ¶
func ParseRoleQueryResponse(bytes []byte) (RoleQueryResponse, error)
type RoleQueryResult ¶
type RoleQueryResult struct { SummaryFields RoleQuerySummaryFields `json:"summary_fields"` GitHubUser string `json:"github_user"` GitHubRepo string `json:"github_repo"` }
func (RoleQueryResult) LatestVersion ¶
func (result RoleQueryResult) LatestVersion() (string, error)
type RoleQuerySummaryFields ¶
type RoleQuerySummaryFields struct {
Versions []RoleQueryVersion `json:"versions"`
}
type RoleQueryVersion ¶
Click to show internal directories.
Click to hide internal directories.