restapi

package
v0.0.0-...-ce4079a Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 7 Imported by: 0

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

type RoleQueryVersion struct {
	ReleaseDate string `json:"release_date"`
	Name        string
	Id          int
}

Jump to

Keyboard shortcuts

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