models

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// ModelTypeCheckpoint captures enum value "Checkpoint"
	ModelTypeCheckpoint string = "Checkpoint"

	// ModelTypeTextualInversion captures enum value "TextualInversion"
	ModelTypeTextualInversion string = "TextualInversion"

	// ModelTypeHypernetwork captures enum value "Hypernetwork"
	ModelTypeHypernetwork string = "Hypernetwork"

	// ModelTypeAestheticGradient captures enum value "AestheticGradient"
	ModelTypeAestheticGradient string = "AestheticGradient"

	// ModelTypeLORA captures enum value "LORA"
	ModelTypeLORA string = "LORA"

	// ModelTypeLyCORIS captures enum value "LyCORIS"
	ModelTypeLyCORIS string = "LyCORIS"

	// ModelTypeControlnet captures enum value "Controlnet"
	ModelTypeControlnet string = "Controlnet"

	// ModelTypeWildcards captures enum value "Wildcards"
	ModelTypeWildcards string = "Wildcards"

	// ModelTypePoses captures enum value "Poses"
	ModelTypePoses string = "Poses"

	// ModelTypeOther captures enum value "Other"
	ModelTypeOther string = "Other"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct {

	// Url to get all models from this user.
	// Example: https://civitai.com/api/v1/models?username=Civitai
	Link string `json:"link,omitempty"`

	// The amount of models linked to this user.
	// Example: 848
	ModelCount int64 `json:"modelCount,omitempty"`

	// The username of the creator.
	// Example: Civitai
	Username string `json:"username,omitempty"`
}

Creator creator

swagger:model Creator

func (*Creator) ContextValidate

func (m *Creator) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this creator based on context it is used

func (*Creator) MarshalBinary

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

MarshalBinary interface implementation

func (*Creator) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Creator) Validate

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

Validate validates this creator

type CreatorsResponse

type CreatorsResponse struct {

	// items
	Items []*Creator `json:"items"`

	// metadata
	Metadata *Metadata `json:"metadata,omitempty"`
}

CreatorsResponse creators response

swagger:model CreatorsResponse

func (*CreatorsResponse) ContextValidate

func (m *CreatorsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this creators response based on the context it is used

func (*CreatorsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CreatorsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreatorsResponse) Validate

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

Validate validates this creators response

type File

type File struct {

	// download Url
	DownloadURL string `json:"downloadUrl,omitempty"`

	// The format of the file ('pickle' or 'safetensor').
	Format string `json:"format,omitempty"`

	// hashes
	Hashes *Hash `json:"hashes,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// pickle scan message
	PickleScanMessage string `json:"pickleScanMessage,omitempty"`

	// Status of the pickle scan ('Pending', 'Success', 'Danger', 'Error').
	PickleScanResult string `json:"pickleScanResult,omitempty"`

	// If the file is the primary file for the model version.
	Primary bool `json:"primary,omitempty"`

	// The date in which the file was scanned.
	// Format: date-time
	ScannedAt strfmt.DateTime `json:"scannedAt,omitempty"`

	// The size of the model file.
	SizeKB float64 `json:"sizeKB,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// Status of the virus scan ('Pending', 'Success', 'Danger', 'Error').
	VirusScanResult string `json:"virusScanResult,omitempty"`
}

File file

swagger:model File

func (*File) ContextValidate

func (m *File) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this file based on the context it is used

func (*File) MarshalBinary

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

MarshalBinary interface implementation

func (*File) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*File) Validate

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

Validate validates this file

type Hash

type Hash struct {

	// auto v1
	// Example: 95F8D0A7
	AutoV1 string `json:"AutoV1,omitempty"`

	// auto v2
	// Example: 95AFA0D9EA
	AutoV2 string `json:"AutoV2,omitempty"`

	// b l a k e3
	// Example: CC4CD6EA2B502C61B4BD86CA5C4B07AF269877877CEC7FB14EEAE846555CED1E
	BLAKE3 string `json:"BLAKE3,omitempty"`

	// c r c32
	// Example: F28B4B59
	CRC32 string `json:"CRC32,omitempty"`

	// s h a256
	// Example: 95AFA0D9EADAC2A04671ED18202FCF09C990148E1CD0AE477BF57F763B948615
	SHA256 string `json:"SHA256,omitempty"`
}

Hash hash

swagger:model Hash

func (*Hash) ContextValidate

func (m *Hash) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this hash based on context it is used

func (*Hash) MarshalBinary

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

MarshalBinary interface implementation

func (*Hash) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Hash) Validate

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

Validate validates this hash

type Image

type Image struct {

	// The date the image was posted.
	// Example: 2023-04-06T09:14:50.762Z
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// generation process
	GenerationProcess string `json:"generationProcess,omitempty"`

	// The blurhash of the image.
	Hash string `json:"hash,omitempty"`

	// The original height of the image.
	Height int64 `json:"height,omitempty"`

	// The id of the image.
	ID int64 `json:"id,omitempty"`

	// The generation params of the image.
	Meta *ImageMetadata `json:"meta,omitempty"`

	// needs review
	NeedsReview bool `json:"needsReview,omitempty"`

	// Whether or not the image is NSFW (note: if the model is NSFW, treat all images on the model as NSFW).
	Nsfw interface{} `json:"nsfw,omitempty"`

	// The ID of the post the image belongs to.
	PostID int64 `json:"postId,omitempty"`

	// scanned at
	// Format: date-time
	ScannedAt strfmt.DateTime `json:"scannedAt,omitempty"`

	// stats
	Stats *ImageStats `json:"stats,omitempty"`

	// tags
	Tags []*ImageTag `json:"tags"`

	// The url for the image.
	URL string `json:"url,omitempty"`

	// user Id
	UserID int64 `json:"userId,omitempty"`

	// The username of the creator.
	Username string `json:"username,omitempty"`

	// The original width of the image.
	Width int64 `json:"width,omitempty"`
}

Image image

swagger:model Image

func (*Image) ContextValidate

func (m *Image) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image based on the context it is used

func (*Image) MarshalBinary

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

MarshalBinary interface implementation

func (*Image) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Image) Validate

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

Validate validates this image

type ImageMetadata

type ImageMetadata struct {

	// resources
	Resources []*ImageResource `json:"resources"`

	// image metadata additional properties
	ImageMetadataAdditionalProperties map[string]interface{} `json:"-"`
}

ImageMetadata image metadata

swagger:model ImageMetadata

func (*ImageMetadata) ContextValidate

func (m *ImageMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image metadata based on the context it is used

func (*ImageMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (ImageMetadata) MarshalJSON

func (m ImageMetadata) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*ImageMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageMetadata) UnmarshalJSON

func (m *ImageMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*ImageMetadata) Validate

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

Validate validates this image metadata

type ImageResource

type ImageResource struct {

	// hash
	Hash string `json:"hash,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// weight
	Weight float64 `json:"weight,omitempty"`
}

ImageResource image resource

swagger:model ImageResource

func (*ImageResource) ContextValidate

func (m *ImageResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this image resource based on context it is used

func (*ImageResource) MarshalBinary

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

MarshalBinary interface implementation

func (*ImageResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageResource) Validate

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

Validate validates this image resource

type ImageStats added in v0.2.0

type ImageStats struct {

	// The number of comment reactions.
	CommentCount int64 `json:"commentCount,omitempty"`

	// The number of cry reactions.
	CryCount int64 `json:"cryCount,omitempty"`

	// dislike count
	DislikeCount int64 `json:"dislikeCount,omitempty"`

	// The number of heart reactions.
	HeartCount int64 `json:"heartCount,omitempty"`

	// The number of laugh reactions.
	LaughCount int64 `json:"laughCount,omitempty"`

	// The number of like reactions.
	LikeCount int64 `json:"likeCount,omitempty"`
}

ImageStats image stats

swagger:model ImageStats

func (*ImageStats) ContextValidate added in v0.2.0

func (m *ImageStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this image stats based on context it is used

func (*ImageStats) MarshalBinary added in v0.2.0

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

MarshalBinary interface implementation

func (*ImageStats) UnmarshalBinary added in v0.2.0

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

UnmarshalBinary interface implementation

func (*ImageStats) Validate added in v0.2.0

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

Validate validates this image stats

type ImageTag

type ImageTag struct {

	// automated
	Automated bool `json:"automated,omitempty"`

	// needs review
	NeedsReview bool `json:"needsReview,omitempty"`

	// tag
	Tag *ImageTagData `json:"tag,omitempty"`
}

ImageTag image tag

swagger:model ImageTag

func (*ImageTag) ContextValidate

func (m *ImageTag) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image tag based on the context it is used

func (*ImageTag) MarshalBinary

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

MarshalBinary interface implementation

func (*ImageTag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageTag) Validate

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

Validate validates this image tag

type ImageTagData

type ImageTagData struct {

	// id
	ID int64 `json:"id,omitempty"`

	// is category
	IsCategory bool `json:"isCategory,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

ImageTagData image tag data

swagger:model ImageTagData

func (*ImageTagData) ContextValidate

func (m *ImageTagData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this image tag data based on context it is used

func (*ImageTagData) MarshalBinary

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

MarshalBinary interface implementation

func (*ImageTagData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageTagData) Validate

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

Validate validates this image tag data

type ImagesResponse added in v0.2.0

type ImagesResponse struct {

	// items
	Items []*Image `json:"items"`

	// metadata
	Metadata *Metadata `json:"metadata,omitempty"`
}

ImagesResponse images response

swagger:model ImagesResponse

func (*ImagesResponse) ContextValidate added in v0.2.0

func (m *ImagesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this images response based on the context it is used

func (*ImagesResponse) MarshalBinary added in v0.2.0

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

MarshalBinary interface implementation

func (*ImagesResponse) UnmarshalBinary added in v0.2.0

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

UnmarshalBinary interface implementation

func (*ImagesResponse) Validate added in v0.2.0

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

Validate validates this images response

type Metadata

type Metadata struct {

	// The the current page you are at.
	// Example: 2
	CurrentPage int64 `json:"currentPage,omitempty"`

	// The url to get the next batch of items.
	// Example: https://civitai.com/api/v1/creators?limit=3\u0026page=3
	NextPage string `json:"nextPage,omitempty"`

	// The the size of the batch.
	// Example: 3
	PageSize int64 `json:"pageSize,omitempty"`

	// The url to get the previous batch of items.
	// Example: https://civitai.com/api/v1/creators?limit=3\u0026page=1
	PrevPage string `json:"prevPage,omitempty"`

	// The total number of items available.
	// Example: 46
	TotalItems int64 `json:"totalItems,omitempty"`

	// The total number of pages.
	// Example: 16
	TotalPages int64 `json:"totalPages,omitempty"`
}

Metadata metadata

swagger:model Metadata

func (*Metadata) ContextValidate

func (m *Metadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this metadata based on context it is used

func (*Metadata) MarshalBinary

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

MarshalBinary interface implementation

func (*Metadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Metadata) Validate

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

Validate validates this metadata

type Model

type Model struct {

	// allow commercial use
	AllowCommercialUse string `json:"allowCommercialUse,omitempty"`

	// allow derivatives
	AllowDerivatives bool `json:"allowDerivatives,omitempty"`

	// allow different license
	AllowDifferentLicense bool `json:"allowDifferentLicense,omitempty"`

	// allow no credit
	AllowNoCredit bool `json:"allowNoCredit,omitempty"`

	// creator
	Creator *ModelCreator `json:"creator,omitempty"`

	// The description of the model (HTML).
	Description string `json:"description,omitempty"`

	// The identifier for the model.
	ID int64 `json:"id,omitempty"`

	// model versions
	ModelVersions []*ModelVersion `json:"modelVersions"`

	// The name of the model.
	Name string `json:"name,omitempty"`

	// Whether the model is NSFW or not.
	Nsfw bool `json:"nsfw,omitempty"`

	// poi
	Poi bool `json:"poi,omitempty"`

	// rank
	Rank *Rank `json:"rank,omitempty"`

	// stats
	Stats *Stats `json:"stats,omitempty"`

	// The tags associated with the model.
	Tags []interface{} `json:"tags"`

	// The model type.
	// Enum: [Checkpoint TextualInversion Hypernetwork AestheticGradient LORA LyCORIS Controlnet Wildcards Poses Other]
	Type string `json:"type,omitempty"`
}

Model model

swagger:model Model

func (*Model) ContextValidate

func (m *Model) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this model based on the context it is used

func (*Model) MarshalBinary

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

MarshalBinary interface implementation

func (*Model) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Model) Validate

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

Validate validates this model

type ModelCreator

type ModelCreator struct {

	// The url of the creators avatar.
	Image string `json:"image,omitempty"`

	// The name of the creator.
	Username string `json:"username,omitempty"`
}

ModelCreator model creator

swagger:model ModelCreator

func (*ModelCreator) ContextValidate

func (m *ModelCreator) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this model creator based on context it is used

func (*ModelCreator) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelCreator) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelCreator) Validate

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

Validate validates this model creator

type ModelVersion

type ModelVersion struct {

	// base model
	BaseModel string `json:"baseModel,omitempty"`

	// The date in which the version was created.
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// The description of the model version (usually a changelog).
	Description string `json:"description,omitempty"`

	// The download url to get the model file for this specific version.
	DownloadURL string `json:"downloadUrl,omitempty"`

	// early access time frame
	EarlyAccessTimeFrame int64 `json:"earlyAccessTimeFrame,omitempty"`

	// files
	Files []*File `json:"files"`

	// The identifier for the model version.
	ID int64 `json:"id,omitempty"`

	// images
	Images []*Image `json:"images"`

	// model Id
	ModelID int64 `json:"modelId,omitempty"`

	// The name of the model version.
	Name string `json:"name,omitempty"`

	// The words used to trigger the model.
	TrainedWords []string `json:"trainedWords"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
}

ModelVersion model version

swagger:model ModelVersion

func (*ModelVersion) ContextValidate

func (m *ModelVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this model version based on the context it is used

func (*ModelVersion) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelVersion) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelVersion) Validate

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

Validate validates this model version

type ModelsResponse

type ModelsResponse struct {

	// items
	Items []*Model `json:"items"`

	// metadata
	Metadata *Metadata `json:"metadata,omitempty"`
}

ModelsResponse models response

swagger:model ModelsResponse

func (*ModelsResponse) ContextValidate

func (m *ModelsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this models response based on the context it is used

func (*ModelsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelsResponse) Validate

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

Validate validates this models response

type Rank

type Rank struct {

	// comment count all time
	CommentCountAllTime int64 `json:"commentCountAllTime,omitempty"`

	// download count all time
	DownloadCountAllTime int64 `json:"downloadCountAllTime,omitempty"`

	// favorite count all time
	FavoriteCountAllTime int64 `json:"favoriteCountAllTime,omitempty"`

	// rating all time
	RatingAllTime float64 `json:"ratingAllTime,omitempty"`

	// rating count all time
	RatingCountAllTime int64 `json:"ratingCountAllTime,omitempty"`
}

Rank rank

swagger:model Rank

func (*Rank) ContextValidate

func (m *Rank) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rank based on context it is used

func (*Rank) MarshalBinary

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

MarshalBinary interface implementation

func (*Rank) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Rank) Validate

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

Validate validates this rank

type StandardError

type StandardError struct {

	// error
	// Example: Something went wrong while writing the file to disk, the server may be out of storage space.
	// Required: true
	Error *string `json:"error"`
}

StandardError standard error

swagger:model StandardError

func (*StandardError) ContextValidate

func (m *StandardError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this standard error based on context it is used

func (*StandardError) MarshalBinary

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

MarshalBinary interface implementation

func (*StandardError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StandardError) Validate

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

Validate validates this standard error

type Stats

type Stats struct {

	// comment count
	CommentCount int64 `json:"commentCount,omitempty"`

	// download count
	DownloadCount int64 `json:"downloadCount,omitempty"`

	// favorite count
	FavoriteCount int64 `json:"favoriteCount,omitempty"`

	// rating
	Rating float64 `json:"rating,omitempty"`

	// rating count
	RatingCount int64 `json:"ratingCount,omitempty"`
}

Stats stats

swagger:model Stats

func (*Stats) ContextValidate

func (m *Stats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stats based on context it is used

func (*Stats) MarshalBinary

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

MarshalBinary interface implementation

func (*Stats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Stats) Validate

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

Validate validates this stats

type Tag

type Tag struct {

	// Url to get all models from this tag.
	Link string `json:"link,omitempty"`

	// The amount of models linked to this tag.
	ModelCount int64 `json:"modelCount,omitempty"`

	// The name of the tag.
	Name string `json:"name,omitempty"`
}

Tag tag

swagger:model Tag

func (*Tag) ContextValidate

func (m *Tag) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this tag based on context it is used

func (*Tag) MarshalBinary

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

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Tag) Validate

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

Validate validates this tag

type TagsResponse

type TagsResponse struct {

	// items
	Items []*Tag `json:"items"`

	// metadata
	Metadata *Metadata `json:"metadata,omitempty"`
}

TagsResponse tags response

swagger:model TagsResponse

func (*TagsResponse) ContextValidate

func (m *TagsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this tags response based on the context it is used

func (*TagsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*TagsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TagsResponse) Validate

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

Validate validates this tags response

Jump to

Keyboard shortcuts

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