models

package
v1.7.8-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Endpoint string `json:"endpoint"`
	Name     string `json:"name"`
	Username string `json:"username"`
	Password string `json:"password"`
	Type     int    `json:"type"`
}

Endpoint : For /api/targets

type ExistingMember added in v1.5.0

type ExistingMember struct {
	MID    int    `json:"id"`
	Name   string `json:"entity_name"`
	RoleID int    `json:"role_id"`
}

ExistingMember : For GET /api/projects/20/members

type ExistingProject

type ExistingProject struct {
	Name string `json:"name"`
	ID   int    `json:"project_id"`
}

ExistingProject : For /api/projects?name=***

type ExistingReplicationPolicy

type ExistingReplicationPolicy struct {
}

type ExistingUser

type ExistingUser struct {
	User
	ID int `json:"user_id"`
}

ExistingUser : For GET /api/users

type Member

type Member struct {
	RoleID int         `json:"role_id"`
	Member *MemberUser `json:"member_user"`
}

Member : For /api/projects/:pid/members

type MemberUser added in v1.5.0

type MemberUser struct {
	Username string `json:"username"`
}

MemberUser ...

type Metadata

type Metadata struct {
	AccessLevel string `json:"public"`
}

Metadata : Metadata for project

type Project

type Project struct {
	Name     string    `json:"project_name"`
	Metadata *Metadata `json:"metadata,omitempty"`
}

Project : For /api/projects

type ReplicationPolicy

type ReplicationPolicy struct {
	ProjectID int `json:"project_id"`
}

ReplicationPolicy : For /api/replications

type Repository

type Repository struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Repository : For /api/repositories

type ScanOverview

type ScanOverview struct {
	Status string `json:"scan_status"`
}

ScanOverview : For scanning

type SystemInfo

type SystemInfo struct {
	AuthMode    string `json:"auth_mode"`
	RegistryURL string `json:"registry_url"`
}

SystemInfo : For GET /api/systeminfo

type Tag

type Tag struct {
	Digest       string                 `json:"digest"`
	Name         string                 `json:"name"`
	Signature    map[string]interface{} `json:"signature, omitempty"`
	ScanOverview *ScanOverview          `json:"scan_overview, omitempty"`
}

Tag : For /api/repositories/:repo/tags

type User

type User struct {
	Username string `json:"username"`
	RealName string `json:"realname"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Comment  string `json:"comment"`
}

User : For /api/users

Jump to

Keyboard shortcuts

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