models

package
v0.0.0-...-8c33995 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppVersion

type AppVersion struct {
	Version string `json:"version"`
}

type CheckRequest

type CheckRequest struct {
	Source  Source     `json:"source"`
	Version AppVersion `json:"version"`
}

type CheckResponse

type CheckResponse []AppVersion

type InRequest

type InRequest struct {
	Source  Source     `json:"source"`
	Version AppVersion `json:"version"`
}

type InResponse

type InResponse struct {
	Version  AppVersion `json:"version"`
	Metadata Metadata   `json:"metadata"`
}

type Metadata

type Metadata []MetadataField

type MetadataField

type MetadataField struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Source

type Source struct {
	Url          string `json:"url"`
	VersionField string `json:"version_field"`
	UserName     string `json:"username"`
	Password     string `json:"password"`
	Accept       string `json:"accept"`
	Insecure     bool   `json:"insecure"`
	Redact       bool   `json:"redact"`
}

Jump to

Keyboard shortcuts

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