Documentation ¶
Index ¶
- Constants
- func GetGithubOAuth(c echo.Context, client *GitHubClient) error
- func GetInfos(c echo.Context) error
- func GetLatestTags(c echo.Context) error
- func GetOAuthCallback(c echo.Context, client *GitHubClient) error
- func PostGithubWebhook(c echo.Context, client *GitHubClient) error
- func SaveMetadataToFile(metadata ContainerMetadata) error
- type Config
- type ContainerMetadata
- type GitHubClient
- type GitHubPackageEvent
- type Labels
- type Layer
- type Manifest
- type ServerInfo
- type ShortMetadata
- type Tag
Constants ¶
View Source
const MetadataFilePath = "./metadata.json"
The file where the metadata will be stored
Variables ¶
This section is empty.
Functions ¶
func GetGithubOAuth ¶
func GetGithubOAuth(c echo.Context, client *GitHubClient) error
func GetInfos ¶
func GetInfos(c echo.Context) error
GetInfos returns a JSON response with the server infos
func GetOAuthCallback ¶
func GetOAuthCallback(c echo.Context, client *GitHubClient) error
func PostGithubWebhook ¶
func PostGithubWebhook(c echo.Context, client *GitHubClient) error
func SaveMetadataToFile ¶
func SaveMetadataToFile(metadata ContainerMetadata) error
Types ¶
type ContainerMetadata ¶
type ContainerMetadata struct { Tag Tag `json:"tag"` Labels Labels `json:"labels"` Manifest Manifest `json:"manifest"` }
func ReadMetadataFromFile ¶
func ReadMetadataFromFile() (ContainerMetadata, error)
type GitHubClient ¶
type GitHubPackageEvent ¶
type GitHubPackageEvent struct { Package struct { PackageVersion struct { ContainerMetadata ContainerMetadata `json:"container_metadata"` } `json:"package_version"` } `json:"package"` }
type ServerInfo ¶
type ShortMetadata ¶
type ShortMetadata struct { Tag struct { Name string `json:"name"` Digest string `json:"digest"` } `json:"tag"` }
func ReadShortMetadataFromFile ¶
func ReadShortMetadataFromFile() ([]ShortMetadata, error)
Click to show internal directories.
Click to hide internal directories.