Files
fn-serverless/fn/vendor/github.com/funcy/functions_go/models/app.go
2017-06-11 02:10:50 -07:00

52 lines
1.1 KiB
Go

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
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"`
}
// 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
}