models

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// The error code
	Code string `json:"code,omitempty"`

	// The error message
	Message string `json:"message,omitempty"`
}

Error a model for all the error response coming from harbor

swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Errors

type Errors struct {

	// errors
	Errors []*Error `json:"errors"`
}

Errors The error array that describe the errors got during the handling of request

swagger:model Errors

func (*Errors) MarshalBinary

func (m *Errors) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Errors) UnmarshalBinary

func (m *Errors) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Errors) Validate

func (m *Errors) Validate(formats strfmt.Registry) error

Validate validates this errors

Jump to

Keyboard shortcuts

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