Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export main types for v1 #147

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 11 additions & 30 deletions schema/defs-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,40 +26,21 @@
}
},
"Entrypoint": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
"type": "array",
"items": {
"type": "string"
}
},
"Cmd": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
"type": "array",
"items": {
"type": "string"
},
"x-nullable": true
},
"Volumes": {
"oneOf": [
{
"$ref": "defs.json#/definitions/mapStringObject"
},
{
"type": "null"
}
]
"$ref": "defs.json#/definitions/mapStringObject",
"x-nullable": true
},
"WorkingDir": {
"type": "string"
Expand Down
10 changes: 2 additions & 8 deletions schema/defs-image.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,8 @@
},
"annotations": {
"id": "https://opencontainers.org/schema/image/annotations",
"oneOf": [
{
"$ref": "defs.json#/definitions/mapStringString"
},
{
"type": "null"
}
]
"$ref": "defs.json#/definitions/mapStringString",
"x-nullable": true
}
}
}
30 changes: 6 additions & 24 deletions schema/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,16 @@
"maximum": 18446744073709552000
},
"uint16Pointer": {
"oneOf": [
{
"$ref": "#/definitions/uint16"
},
{
"type": "null"
}
]
"$ref": "#/definitions/uint16",
"x-nullable": true
},
"uint64Pointer": {
"oneOf": [
{
"$ref": "#/definitions/uint64"
},
{
"type": "null"
}
]
"$ref": "#/definitions/uint64",
"x-nullable": true
},
"stringPointer": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
"type": "string",
"x-nullable": true
},
"mapStringString": {
"type": "object",
Expand Down
25 changes: 25 additions & 0 deletions specs-go/annotations.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package specs-go

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command




/*Annotations annotations

swagger:model annotations
*/
type Annotations struct {


MapStringString
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is generated code, but this should be type Annotations map[string]string.





}




26 changes: 26 additions & 0 deletions specs-go/array_of_g_ids.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package specs-go

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
strfmt "github.com/go-openapi/strfmt"

"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
"github.com/go-openapi/validate"


)



/*ArrayOfGIds array of g ids

swagger:model ArrayOfGIDs
*/
type ArrayOfGIds []GID




26 changes: 26 additions & 0 deletions specs-go/array_of_hooks.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package specs-go

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
strfmt "github.com/go-openapi/strfmt"

"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
"github.com/go-openapi/validate"


)



/*ArrayOfHooks array of hooks

swagger:model ArrayOfHooks
*/
type ArrayOfHooks []*Hook




26 changes: 26 additions & 0 deletions specs-go/array_of_strings.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package specs-go

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
strfmt "github.com/go-openapi/strfmt"

"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
"github.com/go-openapi/validate"


)



/*ArrayOfStrings array of strings

swagger:model ArrayOfStrings
*/
type ArrayOfStrings []string




81 changes: 81 additions & 0 deletions specs-go/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
package specs-go

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
strfmt "github.com/go-openapi/strfmt"

"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
"github.com/go-openapi/validate"


)



/*Config config

swagger:model config
*/
type Config struct {


/* cmd
*/
Cmd []string `json:"Cmd,omitempty"`


/* Cpu shares
*/
CPUShares Int64 `json:"CpuShares,omitempty"`


/* entrypoint
*/
Entrypoint []string `json:"Entrypoint,omitempty"`


/* env
*/
Env []string `json:"Env,omitempty"`


/* exposed ports
*/
ExposedPorts MapStringObject `json:"ExposedPorts,omitempty"`


/* memory
*/
Memory Int64 `json:"Memory,omitempty"`


/* memory swap
*/
MemorySwap Int64 `json:"MemorySwap,omitempty"`


/* user
*/
User string `json:"User,omitempty"`


/* volumes
*/
Volumes MapStringObject `json:"Volumes,omitempty"`


/* working dir
*/
WorkingDir string `json:"WorkingDir,omitempty"`




}




26 changes: 26 additions & 0 deletions specs-go/digest.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package specs-go

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
strfmt "github.com/go-openapi/strfmt"

"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
"github.com/go-openapi/validate"


)



/*Digest the cryptographic checksum digest of the object, in the pattern '<hash>:<hexadecimal digest>'

swagger:model digest
*/
type Digest string




25 changes: 25 additions & 0 deletions specs-go/env.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package specs-go

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command




/*Env env

swagger:model Env
*/
type Env struct {


ArrayOfStrings




}




17 changes: 17 additions & 0 deletions specs-go/file_path.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package specs-go

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command




/*FilePath file path

swagger:model FilePath
*/
type FilePath string




25 changes: 25 additions & 0 deletions specs-go/g_id.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package specs-go

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command




/*GID g ID

swagger:model GID
*/
type GID struct {


Uint32




}




Loading