aboutsummaryrefslogtreecommitdiffstats
path: root/golang/gen/models
diff options
context:
space:
mode:
Diffstat (limited to 'golang/gen/models')
-rw-r--r--golang/gen/models/changelogentry.go88
-rw-r--r--golang/gen/models/creator_edit.go52
-rw-r--r--golang/gen/models/creator_entity.go121
-rw-r--r--golang/gen/models/editgroup.go81
-rw-r--r--golang/gen/models/editor.go64
-rw-r--r--golang/gen/models/entity_edit.go52
-rw-r--r--golang/gen/models/error.go64
-rw-r--r--golang/gen/models/release_entity.go136
-rw-r--r--golang/gen/models/success.go64
9 files changed, 0 insertions, 722 deletions
diff --git a/golang/gen/models/changelogentry.go b/golang/gen/models/changelogentry.go
deleted file mode 100644
index acf93e60..00000000
--- a/golang/gen/models/changelogentry.go
+++ /dev/null
@@ -1,88 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// 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/swag"
- "github.com/go-openapi/validate"
-)
-
-// Changelogentry changelogentry
-// swagger:model changelogentry
-type Changelogentry struct {
-
- // editgroup id
- EditgroupID int64 `json:"editgroup_id,omitempty"`
-
- // index
- // Required: true
- Index *int64 `json:"index"`
-
- // timestamp
- // Format: date-time
- Timestamp strfmt.DateTime `json:"timestamp,omitempty"`
-}
-
-// Validate validates this changelogentry
-func (m *Changelogentry) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateIndex(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateTimestamp(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *Changelogentry) validateIndex(formats strfmt.Registry) error {
-
- if err := validate.Required("index", "body", m.Index); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *Changelogentry) validateTimestamp(formats strfmt.Registry) error {
-
- if swag.IsZero(m.Timestamp) { // not required
- return nil
- }
-
- if err := validate.FormatOf("timestamp", "body", "date-time", m.Timestamp.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *Changelogentry) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *Changelogentry) UnmarshalBinary(b []byte) error {
- var res Changelogentry
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/golang/gen/models/creator_edit.go b/golang/gen/models/creator_edit.go
deleted file mode 100644
index 05bfbf75..00000000
--- a/golang/gen/models/creator_edit.go
+++ /dev/null
@@ -1,52 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// 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/swag"
-)
-
-// CreatorEdit creator edit
-// swagger:model creator_edit
-type CreatorEdit struct {
-
- // editgroup id
- EditgroupID int64 `json:"editgroup_id,omitempty"`
-
- // id
- ID int64 `json:"id,omitempty"`
-
- // ident
- Ident string `json:"ident,omitempty"`
-
- // revision
- Revision int64 `json:"revision,omitempty"`
-}
-
-// Validate validates this creator edit
-func (m *CreatorEdit) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *CreatorEdit) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *CreatorEdit) UnmarshalBinary(b []byte) error {
- var res CreatorEdit
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/golang/gen/models/creator_entity.go b/golang/gen/models/creator_entity.go
deleted file mode 100644
index 47ba34a6..00000000
--- a/golang/gen/models/creator_entity.go
+++ /dev/null
@@ -1,121 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "encoding/json"
-
- strfmt "github.com/go-openapi/strfmt"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// CreatorEntity creator entity
-// swagger:model creator_entity
-type CreatorEntity struct {
-
- // ident
- Ident string `json:"ident,omitempty"`
-
- // name
- Name string `json:"name,omitempty"`
-
- // orcid
- Orcid string `json:"orcid,omitempty"`
-
- // redirect
- Redirect string `json:"redirect,omitempty"`
-
- // revision
- Revision int64 `json:"revision,omitempty"`
-
- // state
- // Enum: [wip active redirect deleted]
- State string `json:"state,omitempty"`
-}
-
-// Validate validates this creator entity
-func (m *CreatorEntity) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateState(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-var creatorEntityTypeStatePropEnum []interface{}
-
-func init() {
- var res []string
- if err := json.Unmarshal([]byte(`["wip","active","redirect","deleted"]`), &res); err != nil {
- panic(err)
- }
- for _, v := range res {
- creatorEntityTypeStatePropEnum = append(creatorEntityTypeStatePropEnum, v)
- }
-}
-
-const (
-
- // CreatorEntityStateWip captures enum value "wip"
- CreatorEntityStateWip string = "wip"
-
- // CreatorEntityStateActive captures enum value "active"
- CreatorEntityStateActive string = "active"
-
- // CreatorEntityStateRedirect captures enum value "redirect"
- CreatorEntityStateRedirect string = "redirect"
-
- // CreatorEntityStateDeleted captures enum value "deleted"
- CreatorEntityStateDeleted string = "deleted"
-)
-
-// prop value enum
-func (m *CreatorEntity) validateStateEnum(path, location string, value string) error {
- if err := validate.Enum(path, location, value, creatorEntityTypeStatePropEnum); err != nil {
- return err
- }
- return nil
-}
-
-func (m *CreatorEntity) validateState(formats strfmt.Registry) error {
-
- if swag.IsZero(m.State) { // not required
- return nil
- }
-
- // value enum
- if err := m.validateStateEnum("state", "body", m.State); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *CreatorEntity) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *CreatorEntity) UnmarshalBinary(b []byte) error {
- var res CreatorEntity
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/golang/gen/models/editgroup.go b/golang/gen/models/editgroup.go
deleted file mode 100644
index 67be219c..00000000
--- a/golang/gen/models/editgroup.go
+++ /dev/null
@@ -1,81 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// 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/swag"
- "github.com/go-openapi/validate"
-)
-
-// Editgroup editgroup
-// swagger:model editgroup
-type Editgroup struct {
-
- // editor id
- // Required: true
- EditorID *int64 `json:"editor_id"`
-
- // id
- // Required: true
- ID *int64 `json:"id"`
-}
-
-// Validate validates this editgroup
-func (m *Editgroup) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateEditorID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateID(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *Editgroup) validateEditorID(formats strfmt.Registry) error {
-
- if err := validate.Required("editor_id", "body", m.EditorID); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *Editgroup) validateID(formats strfmt.Registry) error {
-
- if err := validate.Required("id", "body", m.ID); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *Editgroup) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *Editgroup) UnmarshalBinary(b []byte) error {
- var res Editgroup
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/golang/gen/models/editor.go b/golang/gen/models/editor.go
deleted file mode 100644
index 865de3ff..00000000
--- a/golang/gen/models/editor.go
+++ /dev/null
@@ -1,64 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// 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/swag"
- "github.com/go-openapi/validate"
-)
-
-// Editor editor
-// swagger:model editor
-type Editor struct {
-
- // username
- // Required: true
- Username *string `json:"username"`
-}
-
-// Validate validates this editor
-func (m *Editor) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateUsername(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *Editor) validateUsername(formats strfmt.Registry) error {
-
- if err := validate.Required("username", "body", m.Username); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *Editor) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *Editor) UnmarshalBinary(b []byte) error {
- var res Editor
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/golang/gen/models/entity_edit.go b/golang/gen/models/entity_edit.go
deleted file mode 100644
index a9b9ae9f..00000000
--- a/golang/gen/models/entity_edit.go
+++ /dev/null
@@ -1,52 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// 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/swag"
-)
-
-// EntityEdit entity edit
-// swagger:model entity_edit
-type EntityEdit struct {
-
- // editgroup id
- EditgroupID int64 `json:"editgroup_id,omitempty"`
-
- // id
- ID int64 `json:"id,omitempty"`
-
- // ident
- Ident string `json:"ident,omitempty"`
-
- // revision
- Revision int64 `json:"revision,omitempty"`
-}
-
-// Validate validates this entity edit
-func (m *EntityEdit) Validate(formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *EntityEdit) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *EntityEdit) UnmarshalBinary(b []byte) error {
- var res EntityEdit
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/golang/gen/models/error.go b/golang/gen/models/error.go
deleted file mode 100644
index d8c11da2..00000000
--- a/golang/gen/models/error.go
+++ /dev/null
@@ -1,64 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// 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/swag"
- "github.com/go-openapi/validate"
-)
-
-// Error error
-// swagger:model error
-type Error struct {
-
- // message
- // Required: true
- Message *string `json:"message"`
-}
-
-// Validate validates this error
-func (m *Error) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateMessage(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *Error) validateMessage(formats strfmt.Registry) error {
-
- if err := validate.Required("message", "body", m.Message); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *Error) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *Error) UnmarshalBinary(b []byte) error {
- var res Error
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/golang/gen/models/release_entity.go b/golang/gen/models/release_entity.go
deleted file mode 100644
index fa6a345c..00000000
--- a/golang/gen/models/release_entity.go
+++ /dev/null
@@ -1,136 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "encoding/json"
-
- strfmt "github.com/go-openapi/strfmt"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ReleaseEntity release entity
-// swagger:model release_entity
-type ReleaseEntity struct {
-
- // ident
- // Required: true
- Ident *string `json:"ident"`
-
- // name
- Name string `json:"name,omitempty"`
-
- // orcid
- Orcid string `json:"orcid,omitempty"`
-
- // redirect
- Redirect string `json:"redirect,omitempty"`
-
- // revision
- Revision int64 `json:"revision,omitempty"`
-
- // state
- // Required: true
- // Enum: [wip active redirect deleted]
- State *string `json:"state"`
-}
-
-// Validate validates this release entity
-func (m *ReleaseEntity) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateIdent(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateState(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ReleaseEntity) validateIdent(formats strfmt.Registry) error {
-
- if err := validate.Required("ident", "body", m.Ident); err != nil {
- return err
- }
-
- return nil
-}
-
-var releaseEntityTypeStatePropEnum []interface{}
-
-func init() {
- var res []string
- if err := json.Unmarshal([]byte(`["wip","active","redirect","deleted"]`), &res); err != nil {
- panic(err)
- }
- for _, v := range res {
- releaseEntityTypeStatePropEnum = append(releaseEntityTypeStatePropEnum, v)
- }
-}
-
-const (
-
- // ReleaseEntityStateWip captures enum value "wip"
- ReleaseEntityStateWip string = "wip"
-
- // ReleaseEntityStateActive captures enum value "active"
- ReleaseEntityStateActive string = "active"
-
- // ReleaseEntityStateRedirect captures enum value "redirect"
- ReleaseEntityStateRedirect string = "redirect"
-
- // ReleaseEntityStateDeleted captures enum value "deleted"
- ReleaseEntityStateDeleted string = "deleted"
-)
-
-// prop value enum
-func (m *ReleaseEntity) validateStateEnum(path, location string, value string) error {
- if err := validate.Enum(path, location, value, releaseEntityTypeStatePropEnum); err != nil {
- return err
- }
- return nil
-}
-
-func (m *ReleaseEntity) validateState(formats strfmt.Registry) error {
-
- if err := validate.Required("state", "body", m.State); err != nil {
- return err
- }
-
- // value enum
- if err := m.validateStateEnum("state", "body", *m.State); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ReleaseEntity) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ReleaseEntity) UnmarshalBinary(b []byte) error {
- var res ReleaseEntity
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/golang/gen/models/success.go b/golang/gen/models/success.go
deleted file mode 100644
index 47aac304..00000000
--- a/golang/gen/models/success.go
+++ /dev/null
@@ -1,64 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package models
-
-// 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/swag"
- "github.com/go-openapi/validate"
-)
-
-// Success success
-// swagger:model success
-type Success struct {
-
- // message
- // Required: true
- Message *string `json:"message"`
-}
-
-// Validate validates this success
-func (m *Success) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateMessage(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *Success) validateMessage(formats strfmt.Registry) error {
-
- if err := validate.Required("message", "body", m.Message); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *Success) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *Success) UnmarshalBinary(b []byte) error {
- var res Success
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}