// 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" ) // App app // swagger:model App type App struct { // Application configuration, applied to all routes. Config map[string]string `json:"config,omitempty"` // Name of this app. Must be different than the image name. Can ony contain alphanumeric, -, and _. // Read Only: true Name string `json:"name,omitempty"` } /* polymorph App config false */ /* polymorph App name false */ // Validate validates this app func (m *App) Validate(formats strfmt.Registry) error { var res []error if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } // MarshalBinary interface implementation func (m *App) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *App) UnmarshalBinary(b []byte) error { var res App if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }