models

package
v0.0.0-...-eff1da9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 5 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"

	// AddLabelMediaTypeNull captures enum value "null"
	AddLabelMediaTypeNull string = "null"
)
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"

	// NewRepoRepoKindNull captures enum value "null"
	NewRepoRepoKindNull string = "null"
)
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
	// Enum: [downstream_issue exceeds_license expired_token external_service_timeout fresh_login_required insufficient_scope invalid_request invalid_response invalid_token not_found]
	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
	// Enum: [text/plain application/json null]
	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"`

	// (Deprecated: Use `manifest_digest`) Image to which the tag should point.
	Image string `json:"image,omitempty"`

	// (If specified) The manifest digest to which the tag should point
	ManifestDigest string `json:"manifest_digest,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
	// Enum: [public private]
	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
	// Enum: [text/plain text/markdown]
	MediaType *string `json:"media_type"`

	// The severity of the message
	// Required: true
	// Enum: [info warning error]
	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 CreateRobot

type CreateRobot struct {

	// Optional text description for the robot
	// Max Length: 255
	Description string `json:"description,omitempty"`

	// Optional unstructured metadata for the robot
	UnstructuredMetadata interface{} `json:"unstructured_metadata,omitempty"`
}

CreateRobot Optional data for creating a robot

swagger:model CreateRobot

func (*CreateRobot) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateRobot) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateRobot) Validate

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

Validate validates this create robot

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

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

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
	// Enum: [read write admin]
	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
	// Enum: [user team]
	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
	// Enum: [image application null]
	RepoKind string `json:"repo_kind,omitempty"`

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

	// Visibility which the repository will start with
	// Required: true
	// Enum: [public private]
	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
	// Enum: [read write admin]
	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 {

	// (Deprecated: use `manifest_digest`) Image to which the tag should point
	Image string `json:"image,omitempty"`

	// 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
	// Enum: [member creator admin]
	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
	// Enum: [read write admin]
	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
	// Enum: [read write admin]
	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 UpdateTrigger

type UpdateTrigger struct {

	// Whether the build trigger is enabled
	// Required: true
	Enabled *bool `json:"enabled"`
}

UpdateTrigger Options for updating a build trigger

swagger:model UpdateTrigger

func (*UpdateTrigger) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateTrigger) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateTrigger) Validate

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

Validate validates this update trigger

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 optional entered location for the user
	Location string `json:"location,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
	// Enum: [read write admin]
	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
⌂ 换网址