// 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"
)

// OciDescriptor descriptor
//
// OCI descriptor
// swagger:model OciDescriptor
type OciDescriptor struct {

	// digest
	//
	// content digest
	Digest string `json:"digest,omitempty"`

	// media-type
	//
	// content type
	MediaType string `json:"mediaType,omitempty"`

	// content-size
	//
	// blob size
	Size int64 `json:"size,omitempty"`

	// urls
	//
	// download mirrors
	Urls []string `json:"urls"`
}

// Validate validates this oci descriptor
func (m *OciDescriptor) Validate(formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *OciDescriptor) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *OciDescriptor) UnmarshalBinary(b []byte) error {
	var res OciDescriptor
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
