Documentation
¶
Index ¶
- Constants
- type APIError
- type APIErrorDescription
- type AddLabel
- type BuildTriggerActivateRequest
- type ChangeRepoTrust
- type ChangeTag
- type ChangeVisibility
- type CreateMessage
- type CreateMessageMessage
- type CreateRobot
- type NewApp
- type NewOrg
- type NewPrototype
- type NewPrototypeActivatingUser
- type NewPrototypeDelegate
- type NewRepo
- type NewStarredRepository
- type NewToken
- type NewUser
- type NotificationCreateRequest
- type PrototypeUpdate
- type RepoUpdate
- type RepositoryBuildRequest
- type RestoreTag
- type RunParameters
- type TeamDescription
- type TeamPermission
- type TokenPermission
- type UpdateApp
- type UpdateOrg
- type UpdateTrigger
- type UpdateUser
- type UserPermission
- type UserView
Constants ¶
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" )
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" )
const ( // ChangeVisibilityVisibilityPublic captures enum value "public" ChangeVisibilityVisibilityPublic string = "public" // ChangeVisibilityVisibilityPrivate captures enum value "private" ChangeVisibilityVisibilityPrivate string = "private" )
const ( // CreateMessageMessageMediaTypeTextPlain captures enum value "text/plain" CreateMessageMessageMediaTypeTextPlain string = "text/plain" // CreateMessageMessageMediaTypeTextMarkdown captures enum value "text/markdown" CreateMessageMessageMediaTypeTextMarkdown string = "text/markdown" )
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" )
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" )
const ( // NewPrototypeDelegateKindUser captures enum value "user" NewPrototypeDelegateKindUser string = "user" // NewPrototypeDelegateKindTeam captures enum value "team" NewPrototypeDelegateKindTeam string = "team" )
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" )
const ( // NewRepoVisibilityPublic captures enum value "public" NewRepoVisibilityPublic string = "public" // NewRepoVisibilityPrivate captures enum value "private" NewRepoVisibilityPrivate string = "private" )
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" )
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" )
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" )
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" )
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 ¶
MarshalBinary interface implementation
func (*APIError) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*AddLabel) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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 ¶
MarshalBinary interface implementation
func (*ChangeTag) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*NewApp) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*NewOrg) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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 ¶
MarshalBinary interface implementation
func (*NewRepo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*NewToken) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*NewUser) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*UpdateApp) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*UpdateOrg) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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 ¶
MarshalBinary interface implementation
func (*UserView) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Source Files
¶
- add_label.go
- api_error.go
- api_error_description.go
- build_trigger_activate_request.go
- change_repo_trust.go
- change_tag.go
- change_visibility.go
- create_message.go
- create_robot.go
- new_app.go
- new_org.go
- new_prototype.go
- new_repo.go
- new_starred_repository.go
- new_token.go
- new_user.go
- notification_create_request.go
- prototype_update.go
- repo_update.go
- repository_build_request.go
- restore_tag.go
- run_parameters.go
- team_description.go
- team_permission.go
- token_permission.go
- update_app.go
- update_org.go
- update_trigger.go
- update_user.go
- user_permission.go
- user_view.go