ssot

package
v0.0.0-...-bcded96 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var User = MediaType("application/vnd.User+json", func() {
	Description("Response Type for a GitHub User's list of public SSH Keys")

	Attribute("username", String, "The username of the GitHub user.", func() {
		Example("myname")
	})
	Attribute("keys", ArrayOf(UserKey), "The list of the Github user's public SSH keys.", func() {
		NoExample()
	})

	Required("username", "keys")

	View("default", func() {
		Attribute("username")
		Attribute("keys")
	})
})

User ...

View Source
var UserKey = Type("UserKey", func() {
	Description("Type for a GitHub user's public SSH Key")

	Attribute("id", Integer, "The ID of the public SSH key on GitHub.", func() {
		Example(12345)
	})
	Attribute("key", String, "The public SSH key", func() {
		Example("ssh-rsa ABC123 ...")
	})
	Required("id", "key")
})

UserKey is the type that represents a Github user's public SSH Key

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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