models

package
v0.0.0-...-3ac46d3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AddLabelMediaTypeTextPlain captures enum value "text/plain"
	AddLabelMediaTypeTextPlain string = "text/plain"
	// AddLabelMediaTypeApplicationJSON captures enum value "application/json"
	AddLabelMediaTypeApplicationJSON string = "application/json"
)
View Source
const (
	// APIErrorDescriptionTitleDownstreamIssue captures enum value "downstream_issue"
	APIErrorDescriptionTitleDownstreamIssue string = "downstream_issue"
	// APIErrorDescriptionTitleExceedsLicense captures enum value "exceeds_license"
	APIErrorDescriptionTitleExceedsLicense string = "exceeds_license"
	// APIErrorDescriptionTitleExpiredToken captures enum value "expired_token"
	APIErrorDescriptionTitleExpiredToken string = "expired_token"
	// APIErrorDescriptionTitleExternalServiceTimeout captures enum value "external_service_timeout"
	APIErrorDescriptionTitleExternalServiceTimeout string = "external_service_timeout"
	// APIErrorDescriptionTitleFreshLoginRequired captures enum value "fresh_login_required"
	APIErrorDescriptionTitleFreshLoginRequired string = "fresh_login_required"
	// APIErrorDescriptionTitleInsufficientScope captures enum value "insufficient_scope"
	APIErrorDescriptionTitleInsufficientScope string = "insufficient_scope"
	// APIErrorDescriptionTitleInvalidRequest captures enum value "invalid_request"
	APIErrorDescriptionTitleInvalidRequest string = "invalid_request"
	// APIErrorDescriptionTitleInvalidResponse captures enum value "invalid_response"
	APIErrorDescriptionTitleInvalidResponse string = "invalid_response"
	// APIErrorDescriptionTitleInvalidToken captures enum value "invalid_token"
	APIErrorDescriptionTitleInvalidToken string = "invalid_token"
	// APIErrorDescriptionTitleNotFound captures enum value "not_found"
	APIErrorDescriptionTitleNotFound string = "not_found"
)
View Source
const (
	// ChangeVisibilityVisibilityPublic captures enum value "public"
	ChangeVisibilityVisibilityPublic string = "public"
	// ChangeVisibilityVisibilityPrivate captures enum value "private"
	ChangeVisibilityVisibilityPrivate string = "private"
)
View Source
const (
	// CreateMessageMessageMediaTypeTextPlain captures enum value "text/plain"
	CreateMessageMessageMediaTypeTextPlain string = "text/plain"
	// CreateMessageMessageMediaTypeTextMarkdown captures enum value "text/markdown"
	CreateMessageMessageMediaTypeTextMarkdown string = "text/markdown"
)
View Source
const (
	// CreateMessageMessageSeverityInfo captures enum value "info"
	CreateMessageMessageSeverityInfo string = "info"
	// CreateMessageMessageSeverityWarning captures enum value "warning"
	CreateMessageMessageSeverityWarning string = "warning"
	// CreateMessageMessageSeverityError captures enum value "error"
	CreateMessageMessageSeverityError string = "error"
)
View Source
const (
	// NewPrototypeRoleRead captures enum value "read"
	NewPrototypeRoleRead string = "read"
	// NewPrototypeRoleWrite captures enum value "write"
	NewPrototypeRoleWrite string = "write"
	// NewPrototypeRoleAdmin captures enum value "admin"
	NewPrototypeRoleAdmin string = "admin"
)
View Source
const (
	// NewPrototypeDelegateKindUser captures enum value "user"
	NewPrototypeDelegateKindUser string = "user"
	// NewPrototypeDelegateKindTeam captures enum value "team"
	NewPrototypeDelegateKindTeam string = "team"
)
View Source
const (
	// NewRepoRepoKindImage captures enum value "image"
	NewRepoRepoKindImage string = "image"
	// NewRepoRepoKindApplication captures enum value "application"
	NewRepoRepoKindApplication string = "application"
)
View Source
const (
	// NewRepoVisibilityPublic captures enum value "public"
	NewRepoVisibilityPublic string = "public"
	// NewRepoVisibilityPrivate captures enum value "private"
	NewRepoVisibilityPrivate string = "private"
)
View Source
const (
	// PrototypeUpdateRoleRead captures enum value "read"
	PrototypeUpdateRoleRead string = "read"
	// PrototypeUpdateRoleWrite captures enum value "write"
	PrototypeUpdateRoleWrite string = "write"
	// PrototypeUpdateRoleAdmin captures enum value "admin"
	PrototypeUpdateRoleAdmin string = "admin"
)
View Source
const (
	// TeamDescriptionRoleMember captures enum value "member"
	TeamDescriptionRoleMember string = "member"
	// TeamDescriptionRoleCreator captures enum value "creator"
	TeamDescriptionRoleCreator string = "creator"
	// TeamDescriptionRoleAdmin captures enum value "admin"
	TeamDescriptionRoleAdmin string = "admin"
)
View Source
const (
	// TeamPermissionRoleRead captures enum value "read"
	TeamPermissionRoleRead string = "read"
	// TeamPermissionRoleWrite captures enum value "write"
	TeamPermissionRoleWrite string = "write"
	// TeamPermissionRoleAdmin captures enum value "admin"
	TeamPermissionRoleAdmin string = "admin"
)
View Source
const (
	// TokenPermissionRoleRead captures enum value "read"
	TokenPermissionRoleRead string = "read"
	// TokenPermissionRoleWrite captures enum value "write"
	TokenPermissionRoleWrite string = "write"
	// TokenPermissionRoleAdmin captures enum value "admin"
	TokenPermissionRoleAdmin string = "admin"
)
View Source
const (
	// UserPermissionRoleRead captures enum value "read"
	UserPermissionRoleRead string = "read"
	// UserPermissionRoleWrite captures enum value "write"
	UserPermissionRoleWrite string = "write"
	// UserPermissionRoleAdmin captures enum value "admin"
	UserPermissionRoleAdmin string = "admin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {

	// Details about the specific instance of the error.
	Detail string `json:"detail,omitempty"`

	// Deprecated; alias for detail
	ErrorMessage string `json:"error_message,omitempty"`

	// Deprecated; alias for detail
	ErrorType string `json:"error_type,omitempty"`

	// Status code of the response.
	// Required: true
	Status *int64 `json:"status"`

	// Unique error code to identify the type of error.
	// Required: true
	Title *string `json:"title"`

	// Reference to the type of the error.
	// Required: true
	Type *string `json:"type"`
}

APIError Api error swagger:model ApiError

func (*APIError) MarshalBinary

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

MarshalBinary interface implementation

func (*APIError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIError) Validate

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

Validate validates this Api error

type APIErrorDescription

type APIErrorDescription struct {

	// A more detailed description of the error that may include help for fixing the issue.
	// Required: true
	Description *string `json:"description"`

	// The title of the error. Can be used to uniquely identify the kind of error.
	// Required: true
	Title *string `json:"title"`

	// A reference to the error type resource
	// Required: true
	Type *string `json:"type"`
}

APIErrorDescription Description of an error swagger:model ApiErrorDescription

func (*APIErrorDescription) MarshalBinary

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

MarshalBinary interface implementation

func (*APIErrorDescription) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIErrorDescription) Validate

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

Validate validates this Api error description

type AddLabel

type AddLabel struct {

	// The key for the label
	// Required: true
	Key *string `json:"key"`

	// The media type for this label
	// Required: true
	MediaType *string `json:"media_type"`

	// The value for the label
	// Required: true
	Value *string `json:"value"`
}

AddLabel Adds a label to a manifest swagger:model AddLabel

func (*AddLabel) MarshalBinary

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

MarshalBinary interface implementation

func (*AddLabel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddLabel) Validate

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

Validate validates this add label

type BuildTriggerActivateRequest

type BuildTriggerActivateRequest struct {

	// Arbitrary json.
	// Required: true
	Config interface{} `json:"config"`

	// The name of the robot that will be used to pull images.
	PullRobot string `json:"pull_robot,omitempty"`
}

BuildTriggerActivateRequest build trigger activate request swagger:model BuildTriggerActivateRequest

func (*BuildTriggerActivateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*BuildTriggerActivateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BuildTriggerActivateRequest) Validate

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

Validate validates this build trigger activate request

type ChangeRepoTrust

type ChangeRepoTrust struct {

	// Whether or not signing is enabled for the repository.
	// Required: true
	TrustEnabled *bool `json:"trust_enabled"`
}

ChangeRepoTrust Change the trust settings for the repository. swagger:model ChangeRepoTrust

func (*ChangeRepoTrust) MarshalBinary

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

MarshalBinary interface implementation

func (*ChangeRepoTrust) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChangeRepoTrust) Validate

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

Validate validates this change repo trust

type ChangeTag

type ChangeTag struct {

	// (If specified) The expiration for the image
	Expiration float64 `json:"expiration,omitempty"`

	// (If specified) Image identifier to which the tag should point
	Image string `json:"image,omitempty"`
}

ChangeTag Makes changes to a specific tag swagger:model ChangeTag

func (*ChangeTag) MarshalBinary

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

MarshalBinary interface implementation

func (*ChangeTag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChangeTag) Validate

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

Validate validates this change tag

type ChangeVisibility

type ChangeVisibility struct {

	// Visibility which the repository will start with
	// Required: true
	Visibility *string `json:"visibility"`
}

ChangeVisibility Change the visibility for the repository. swagger:model ChangeVisibility

func (*ChangeVisibility) MarshalBinary

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

MarshalBinary interface implementation

func (*ChangeVisibility) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ChangeVisibility) Validate

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

Validate validates this change visibility

type CreateMessage

type CreateMessage struct {

	// message
	Message *CreateMessageMessage `json:"message,omitempty"`
}

CreateMessage Create a new message swagger:model CreateMessage

func (*CreateMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateMessage) Validate

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

Validate validates this create message

type CreateMessageMessage

type CreateMessageMessage struct {

	// The actual message
	// Required: true
	Content *string `json:"content"`

	// The media type of the message
	// Required: true
	MediaType *string `json:"media_type"`

	// The severity of the message
	// Required: true
	Severity *string `json:"severity"`
}

CreateMessageMessage A single message swagger:model createMessageMessage

func (*CreateMessageMessage) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateMessageMessage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateMessageMessage) Validate

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

Validate validates this create message message

type GetRepo

type GetRepo struct {

	// can admin
	CanAdmin bool `json:"can_admin,omitempty"`

	// can write
	CanWrite bool `json:"can_write,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// is organization
	IsOrganization bool `json:"is_organization,omitempty"`

	// is public
	IsPublic bool `json:"is_public,omitempty"`

	// is starred
	IsStarred bool `json:"is_starred,omitempty"`

	// kind
	Kind string `json:"kind,omitempty"`

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

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// status token
	StatusToken string `json:"status_token,omitempty"`

	// tag expiration s
	TagExpirationS float64 `json:"tag_expiration_s,omitempty"`

	// tags
	Tags GetRepoTags `json:"tags,omitempty"`

	// trust enabled
	TrustEnabled bool `json:"trust_enabled,omitempty"`
}

GetRepo Response body of a successful getRepo. swagger:model GetRepo

func (*GetRepo) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRepo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRepo) Validate

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

Validate validates this get repo

type GetRepoTags

GetRepoTags get repo tags swagger:model getRepoTags

func (GetRepoTags) Validate

func (m GetRepoTags) Validate(formats strfmt.Registry) error

Validate validates this get repo tags

type GetRepoTagsAdditionalProperties

type GetRepoTagsAdditionalProperties struct {

	// image id
	ImageID string `json:"image_id,omitempty"`

	// last modififed
	LastModififed string `json:"last_modififed,omitempty"`

	// manifest digest
	ManifestDigest string `json:"manifest_digest,omitempty"`

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

	// size
	Size float64 `json:"size,omitempty"`
}

GetRepoTagsAdditionalProperties get repo tags additional properties swagger:model getRepoTagsAdditionalProperties

func (*GetRepoTagsAdditionalProperties) MarshalBinary

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

MarshalBinary interface implementation

func (*GetRepoTagsAdditionalProperties) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetRepoTagsAdditionalProperties) Validate

Validate validates this get repo tags additional properties

type ImageSecurity

type ImageSecurity struct {

	// data
	Data *ImageSecurityData `json:"data,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

ImageSecurity Response body of a successful v. swagger:model ImageSecurity

func (*ImageSecurity) MarshalBinary

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

MarshalBinary interface implementation

func (*ImageSecurity) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageSecurity) Validate

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

Validate validates this image security

type ImageSecurityData

type ImageSecurityData struct {

	// layer
	Layer *ImageSecurityDataLayer `json:"Layer,omitempty"`
}

ImageSecurityData image security data swagger:model imageSecurityData

func (*ImageSecurityData) MarshalBinary

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

MarshalBinary interface implementation

func (*ImageSecurityData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageSecurityData) Validate

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

Validate validates this image security data

type ImageSecurityDataLayer

type ImageSecurityDataLayer struct {

	// features
	Features ImageSecurityDataLayerFeatures `json:"Features"`

	// indexed by version
	IndexedByVersion float64 `json:"IndexedByVersion,omitempty"`

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

	// namespace name
	NamespaceName string `json:"NamespaceName,omitempty"`

	// parent name
	ParentName string `json:"ParentName,omitempty"`
}

ImageSecurityDataLayer image security data layer swagger:model imageSecurityDataLayer

func (*ImageSecurityDataLayer) MarshalBinary

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

MarshalBinary interface implementation

func (*ImageSecurityDataLayer) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageSecurityDataLayer) Validate

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

Validate validates this image security data layer

type ImageSecurityDataLayerFeatures

type ImageSecurityDataLayerFeatures []*ImageSecurityDataLayerFeaturesItems

ImageSecurityDataLayerFeatures image security data layer features swagger:model imageSecurityDataLayerFeatures

func (ImageSecurityDataLayerFeatures) Validate

Validate validates this image security data layer features

type ImageSecurityDataLayerFeaturesItems

type ImageSecurityDataLayerFeaturesItems struct {

	// added by
	AddedBy string `json:"AddedBy,omitempty"`

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

	// namespace name
	NamespaceName string `json:"NamespaceName,omitempty"`

	// version
	Version string `json:"Version,omitempty"`

	// version format
	VersionFormat string `json:"VersionFormat,omitempty"`

	// vulnerabilities
	Vulnerabilities ImageSecurityDataLayerFeaturesItemsVulnerabilities `json:"Vulnerabilities"`
}

ImageSecurityDataLayerFeaturesItems image security data layer features items swagger:model imageSecurityDataLayerFeaturesItems

func (*ImageSecurityDataLayerFeaturesItems) MarshalBinary

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

MarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItems) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItems) Validate

Validate validates this image security data layer features items

type ImageSecurityDataLayerFeaturesItemsVulnerabilities

type ImageSecurityDataLayerFeaturesItemsVulnerabilities []*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItems

ImageSecurityDataLayerFeaturesItemsVulnerabilities image security data layer features items vulnerabilities swagger:model imageSecurityDataLayerFeaturesItemsVulnerabilities

func (ImageSecurityDataLayerFeaturesItemsVulnerabilities) Validate

Validate validates this image security data layer features items vulnerabilities

type ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItems

type ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItems struct {

	// fixed by
	FixedBy string `json:"FixedBy,omitempty"`

	// link
	Link string `json:"Link,omitempty"`

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

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

	// namespace name
	NamespaceName string `json:"NamespaceName,omitempty"`

	// severity
	Severity string `json:"Severity,omitempty"`
}

ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItems image security data layer features items vulnerabilities items swagger:model imageSecurityDataLayerFeaturesItemsVulnerabilitiesItems

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItems) MarshalBinary

MarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItems) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItems) Validate

Validate validates this image security data layer features items vulnerabilities items

type ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadata

type ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadata struct {

	// n v d
	NVD *ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVD `json:"NVD,omitempty"`
}

ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadata image security data layer features items vulnerabilities items metadata swagger:model imageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadata

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadata) MarshalBinary

MarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadata) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadata) Validate

Validate validates this image security data layer features items vulnerabilities items metadata

type ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVD

type ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVD struct {

	// c v s sv2
	CVSSv2 *ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVDCVSSv2 `json:"CVSSv2,omitempty"`
}

ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVD image security data layer features items vulnerabilities items metadata n v d swagger:model imageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVD

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVD) MarshalBinary

MarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVD) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVD) Validate

Validate validates this image security data layer features items vulnerabilities items metadata n v d

type ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVDCVSSv2

type ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVDCVSSv2 struct {

	// score
	Score float64 `json:"Score,omitempty"`

	// vectors
	Vectors string `json:"Vectors,omitempty"`
}

ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVDCVSSv2 image security data layer features items vulnerabilities items metadata n v d c v s sv2 swagger:model imageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVDCVSSv2

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVDCVSSv2) MarshalBinary

MarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVDCVSSv2) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ImageSecurityDataLayerFeaturesItemsVulnerabilitiesItemsMetadataNVDCVSSv2) Validate

Validate validates this image security data layer features items vulnerabilities items metadata n v d c v s sv2

type ListRepoTags

type ListRepoTags struct {

	// has additional
	HasAdditional bool `json:"has_additional,omitempty"`

	// page
	Page float64 `json:"page,omitempty"`

	// tags
	Tags ListRepoTagsTags `json:"tags"`
}

ListRepoTags Response body of a successful listRepoTags. swagger:model ListRepoTags

func (*ListRepoTags) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRepoTags) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRepoTags) Validate

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

Validate validates this list repo tags

type ListRepoTagsTags

type ListRepoTagsTags []*ListRepoTagsTagsItems

ListRepoTagsTags list repo tags tags swagger:model listRepoTagsTags

func (ListRepoTagsTags) Validate

func (m ListRepoTagsTags) Validate(formats strfmt.Registry) error

Validate validates this list repo tags tags

type ListRepoTagsTagsItems

type ListRepoTagsTagsItems struct {

	// docker image id
	DockerImageID string `json:"docker_image_id,omitempty"`

	// manifest digest
	ManifestDigest string `json:"manifest_digest,omitempty"`

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

	// reversion
	Reversion bool `json:"reversion,omitempty"`
}

ListRepoTagsTagsItems list repo tags tags items swagger:model listRepoTagsTagsItems

func (*ListRepoTagsTagsItems) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRepoTagsTagsItems) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRepoTagsTagsItems) Validate

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

Validate validates this list repo tags tags items

type ListRepos

type ListRepos struct {

	// repositories
	Repositories ListReposRepositories `json:"repositories"`
}

ListRepos Response body of a successful listRepos. swagger:model ListRepos

func (*ListRepos) MarshalBinary

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

MarshalBinary interface implementation

func (*ListRepos) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListRepos) Validate

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

Validate validates this list repos

type ListReposRepositories

type ListReposRepositories []*ListReposRepositoriesItems

ListReposRepositories list repos repositories swagger:model listReposRepositories

func (ListReposRepositories) Validate

func (m ListReposRepositories) Validate(formats strfmt.Registry) error

Validate validates this list repos repositories

type ListReposRepositoriesItems

type ListReposRepositoriesItems struct {

	// description
	Description string `json:"description,omitempty"`

	// is public
	IsPublic bool `json:"is_public,omitempty"`

	// is starred
	IsStarred bool `json:"is_starred,omitempty"`

	// kind
	Kind string `json:"kind,omitempty"`

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

	// namespace
	Namespace string `json:"namespace,omitempty"`
}

ListReposRepositoriesItems list repos repositories items swagger:model listReposRepositoriesItems

func (*ListReposRepositoriesItems) MarshalBinary

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

MarshalBinary interface implementation

func (*ListReposRepositoriesItems) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListReposRepositoriesItems) Validate

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

Validate validates this list repos repositories items

type NewApp

type NewApp struct {

	// The URI for the application's homepage
	ApplicationURI string `json:"application_uri,omitempty"`

	// The e-mail address of the avatar to use for the application
	AvatarEmail string `json:"avatar_email,omitempty"`

	// The human-readable description for the application
	Description string `json:"description,omitempty"`

	// The name of the application
	// Required: true
	Name *string `json:"name"`

	// The URI for the application's OAuth redirect
	RedirectURI string `json:"redirect_uri,omitempty"`
}

NewApp Description of a new organization application. swagger:model NewApp

func (*NewApp) MarshalBinary

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

MarshalBinary interface implementation

func (*NewApp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewApp) Validate

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

Validate validates this new app

type NewOrg

type NewOrg struct {

	// Organization contact email
	Email string `json:"email,omitempty"`

	// Organization username
	// Required: true
	Name *string `json:"name"`
}

NewOrg Description of a new organization. swagger:model NewOrg

func (*NewOrg) MarshalBinary

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

MarshalBinary interface implementation

func (*NewOrg) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewOrg) Validate

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

Validate validates this new org

type NewPrototype

type NewPrototype struct {

	// activating user
	ActivatingUser *NewPrototypeActivatingUser `json:"activating_user,omitempty"`

	// delegate
	// Required: true
	Delegate *NewPrototypeDelegate `json:"delegate"`

	// Role that should be applied to the delegate
	// Required: true
	Role *string `json:"role"`
}

NewPrototype Description of a new prototype swagger:model NewPrototype

func (*NewPrototype) MarshalBinary

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

MarshalBinary interface implementation

func (*NewPrototype) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewPrototype) Validate

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

Validate validates this new prototype

type NewPrototypeActivatingUser

type NewPrototypeActivatingUser struct {

	// The username for the activating_user
	// Required: true
	Name *string `json:"name"`
}

NewPrototypeActivatingUser Repository creating user to whom the rule should apply swagger:model newPrototypeActivatingUser

func (*NewPrototypeActivatingUser) MarshalBinary

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

MarshalBinary interface implementation

func (*NewPrototypeActivatingUser) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewPrototypeActivatingUser) Validate

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

Validate validates this new prototype activating user

type NewPrototypeDelegate

type NewPrototypeDelegate struct {

	// Whether the delegate is a user or a team
	// Required: true
	Kind *string `json:"kind"`

	// The name for the delegate team or user
	// Required: true
	Name *string `json:"name"`
}

NewPrototypeDelegate Information about the user or team to which the rule grants access swagger:model newPrototypeDelegate

func (*NewPrototypeDelegate) MarshalBinary

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

MarshalBinary interface implementation

func (*NewPrototypeDelegate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewPrototypeDelegate) Validate

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

Validate validates this new prototype delegate

type NewRepo

type NewRepo struct {

	// Markdown encoded description for the repository
	// Required: true
	Description *string `json:"description"`

	// Namespace in which the repository should be created. If omitted, the username of the caller is used
	Namespace string `json:"namespace,omitempty"`

	// The kind of repository
	RepoKind string `json:"repo_kind,omitempty"`

	// Repository name
	// Required: true
	Repository *string `json:"repository"`

	// Visibility which the repository will start with
	// Required: true
	Visibility *string `json:"visibility"`
}

NewRepo Description of a new repository swagger:model NewRepo

func (*NewRepo) MarshalBinary

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

MarshalBinary interface implementation

func (*NewRepo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewRepo) Validate

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

Validate validates this new repo

type NewStarredRepository

type NewStarredRepository struct {

	// Namespace in which the repository belongs
	// Required: true
	Namespace *string `json:"namespace"`

	// Repository name
	// Required: true
	Repository *string `json:"repository"`
}

NewStarredRepository new starred repository swagger:model NewStarredRepository

func (*NewStarredRepository) MarshalBinary

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

MarshalBinary interface implementation

func (*NewStarredRepository) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewStarredRepository) Validate

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

Validate validates this new starred repository

type NewToken

type NewToken struct {

	// Friendly name to help identify the token
	// Required: true
	FriendlyName *string `json:"friendlyName"`
}

NewToken Description of a new token. swagger:model NewToken

func (*NewToken) MarshalBinary

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

MarshalBinary interface implementation

func (*NewToken) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewToken) Validate

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

Validate validates this new token

type NewUser

type NewUser struct {

	// The user's email address
	Email string `json:"email,omitempty"`

	// The optional invite code
	InviteCode string `json:"invite_code,omitempty"`

	// The user's password
	// Required: true
	Password *string `json:"password"`

	// The (may be disabled) recaptcha response code for verification
	RecaptchaResponse string `json:"recaptcha_response,omitempty"`

	// The user's username
	// Required: true
	Username *string `json:"username"`
}

NewUser Fields which must be specified for a new user. swagger:model NewUser

func (*NewUser) MarshalBinary

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

MarshalBinary interface implementation

func (*NewUser) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewUser) Validate

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

Validate validates this new user

type NotificationCreateRequest

type NotificationCreateRequest struct {

	// JSON config information for the specific method of notification
	// Required: true
	Config interface{} `json:"config"`

	// The event on which the notification will respond
	// Required: true
	Event *string `json:"event"`

	// JSON config information for the specific event of notification
	// Required: true
	EventConfig interface{} `json:"eventConfig"`

	// The method of notification (such as email or web callback)
	// Required: true
	Method *string `json:"method"`

	// The human-readable title of the notification
	Title string `json:"title,omitempty"`
}

NotificationCreateRequest Information for creating a notification on a repository swagger:model NotificationCreateRequest

func (*NotificationCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*NotificationCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NotificationCreateRequest) Validate

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

Validate validates this notification create request

type PrototypeUpdate

type PrototypeUpdate struct {

	// Role that should be applied to the permission
	// Required: true
	Role *string `json:"role"`
}

PrototypeUpdate Description of a the new prototype role swagger:model PrototypeUpdate

func (*PrototypeUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*PrototypeUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PrototypeUpdate) Validate

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

Validate validates this prototype update

type RepoUpdate

type RepoUpdate struct {

	// Markdown encoded description for the repository
	// Required: true
	Description *string `json:"description"`
}

RepoUpdate Fields which can be updated in a repository. swagger:model RepoUpdate

func (*RepoUpdate) MarshalBinary

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

MarshalBinary interface implementation

func (*RepoUpdate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RepoUpdate) Validate

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

Validate validates this repo update

type RepositoryBuildRequest

type RepositoryBuildRequest struct {

	// The URL of the .tar.gz to build. Must start with "http" or "https".
	ArchiveURL string `json:"archive_url,omitempty"`

	// Pass in the context for the dockerfile. This is optional.
	Context string `json:"context,omitempty"`

	// The tags to which the built images will be pushed. If none specified, "latest" is used.
	// Min Items: 1
	// Unique: true
	DockerTags []string `json:"docker_tags"`

	// Path to a dockerfile. You can only specify this or subdirectory.
	DockerfilePath string `json:"dockerfile_path,omitempty"`

	// The file id that was generated when the build spec was uploaded
	FileID string `json:"file_id,omitempty"`

	// Username of a Quay robot account to use as pull credentials
	PullRobot string `json:"pull_robot,omitempty"`

	// Subdirectory in which the Dockerfile can be found. You can only specify this or dockerfile_path
	Subdirectory string `json:"subdirectory,omitempty"`
}

RepositoryBuildRequest Description of a new repository build. swagger:model RepositoryBuildRequest

func (*RepositoryBuildRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*RepositoryBuildRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RepositoryBuildRequest) Validate

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

Validate validates this repository build request

type RestoreTag

type RestoreTag struct {

	// Image identifier to which the tag should point
	// Required: true
	Image *string `json:"image"`

	// If specified, the manifest digest that should be used
	ManifestDigest string `json:"manifest_digest,omitempty"`
}

RestoreTag Restores a tag to a specific image swagger:model RestoreTag

func (*RestoreTag) MarshalBinary

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

MarshalBinary interface implementation

func (*RestoreTag) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RestoreTag) Validate

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

Validate validates this restore tag

type RunParameters

type RunParameters struct {

	// (SCM only) If specified, the name of the branch to build.
	BranchName string `json:"branch_name,omitempty"`

	// (Custom Only) If specified, the ref/SHA1 used to checkout a git repository.
	CommitSha string `json:"commit_sha,omitempty"`

	// (SCM Only) If specified, the ref to build.
	Refs interface{} `json:"refs,omitempty"`
}

RunParameters Optional run parameters for activating the build trigger swagger:model RunParameters

func (*RunParameters) MarshalBinary

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

MarshalBinary interface implementation

func (*RunParameters) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RunParameters) Validate

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

Validate validates this run parameters

type TeamDescription

type TeamDescription struct {

	// Markdown description for the team
	Description string `json:"description,omitempty"`

	// Org wide permissions that should apply to the team
	// Required: true
	Role *string `json:"role"`
}

TeamDescription Description of a team swagger:model TeamDescription

func (*TeamDescription) MarshalBinary

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

MarshalBinary interface implementation

func (*TeamDescription) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TeamDescription) Validate

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

Validate validates this team description

type TeamPermission

type TeamPermission struct {

	// Role to use for the team
	// Required: true
	Role *string `json:"role"`
}

TeamPermission Description of a team permission. swagger:model TeamPermission

func (*TeamPermission) MarshalBinary

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

MarshalBinary interface implementation

func (*TeamPermission) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TeamPermission) Validate

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

Validate validates this team permission

type TokenPermission

type TokenPermission struct {

	// Role to use for the token
	// Required: true
	Role *string `json:"role"`
}

TokenPermission Description of a token permission swagger:model TokenPermission

func (*TokenPermission) MarshalBinary

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

MarshalBinary interface implementation

func (*TokenPermission) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TokenPermission) Validate

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

Validate validates this token permission

type UpdateApp

type UpdateApp struct {

	// The URI for the application's homepage
	// Required: true
	ApplicationURI *string `json:"application_uri"`

	// The e-mail address of the avatar to use for the application
	AvatarEmail string `json:"avatar_email,omitempty"`

	// The human-readable description for the application
	Description string `json:"description,omitempty"`

	// The name of the application
	// Required: true
	Name *string `json:"name"`

	// The URI for the application's OAuth redirect
	// Required: true
	RedirectURI *string `json:"redirect_uri"`
}

UpdateApp Description of an updated application. swagger:model UpdateApp

func (*UpdateApp) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateApp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateApp) Validate

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

Validate validates this update app

type UpdateOrg

type UpdateOrg struct {

	// Organization contact email
	Email string `json:"email,omitempty"`

	// Whether the organization desires to receive emails for invoices
	InvoiceEmail bool `json:"invoice_email,omitempty"`

	// The email address at which to receive invoices
	InvoiceEmailAddress string `json:"invoice_email_address,omitempty"`

	// The number of seconds for tag expiration
	// Minimum: 0
	TagExpirationS *int64 `json:"tag_expiration_s,omitempty"`
}

UpdateOrg Description of updates for an existing organization swagger:model UpdateOrg

func (*UpdateOrg) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateOrg) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateOrg) Validate

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

Validate validates this update org

type UpdateUser

type UpdateUser struct {

	// The optional entered company for the user
	Company string `json:"company,omitempty"`

	// The user's email address
	Email string `json:"email,omitempty"`

	// The optional entered family name for the user
	FamilyName string `json:"family_name,omitempty"`

	// The optional entered given name for the user
	GivenName string `json:"given_name,omitempty"`

	// Whether the user desires to receive an invoice email.
	InvoiceEmail bool `json:"invoice_email,omitempty"`

	// Custom email address for receiving invoices
	InvoiceEmailAddress string `json:"invoice_email_address,omitempty"`

	// The user's password
	Password string `json:"password,omitempty"`

	// The number of seconds for tag expiration
	// Minimum: 0
	TagExpirationS *int64 `json:"tag_expiration_s,omitempty"`

	// The user's username
	Username string `json:"username,omitempty"`
}

UpdateUser Fields which can be updated in a user. swagger:model UpdateUser

func (*UpdateUser) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateUser) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateUser) Validate

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

Validate validates this update user

type UserPermission

type UserPermission struct {

	// Role to use for the user
	// Required: true
	Role *string `json:"role"`
}

UserPermission Description of a user permission. swagger:model UserPermission

func (*UserPermission) MarshalBinary

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

MarshalBinary interface implementation

func (*UserPermission) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserPermission) Validate

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

Validate validates this user permission

type UserView

type UserView struct {

	// true if this user data represents a guest user
	// Required: true
	Anonymous *bool `json:"anonymous"`

	// Avatar data representing the user's icon
	// Required: true
	Avatar interface{} `json:"avatar"`

	// Whether the user has permission to create repositories
	CanCreateRepo bool `json:"can_create_repo,omitempty"`

	// The user's email address
	Email string `json:"email,omitempty"`

	// The list of external login providers against which the user has authenticated
	Logins []interface{} `json:"logins"`

	// Information about the organizations in which the user is a member
	Organizations []interface{} `json:"organizations"`

	// If true, the user's namespace is the preferred namespace to display
	PreferredNamespace bool `json:"preferred_namespace,omitempty"`

	// Whether the user's email address has been verified
	Verified bool `json:"verified,omitempty"`
}

UserView Describes a user swagger:model UserView

func (*UserView) MarshalBinary

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

MarshalBinary interface implementation

func (*UserView) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserView) Validate

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

Validate validates this user view

Jump to

Keyboard shortcuts

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