registryauth

package
Version: v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbClient *gorm.DB

Functions

func Create

func Create(auth *RegistryAuth) error

func Delete

func Delete(registryAuth *RegistryAuth) error

func Init

func Init(dbClient *gorm.DB)

Types

type RegistryAuth

type RegistryAuth struct {
	ID        uint64 `json:"Id"`
	Name      string `json:"Name" gorm:"not null"`
	Username  string `json:"Username" gorm:"not null"`
	Password  string `json:"Password" gorm:"not null"`
	AccountId uint64 `json:"Accountid" gorm:"not null"`
}

func Get

func Get(name string) (*RegistryAuth, error)

func List

func List(registryAuth *RegistryAuth) ([]RegistryAuth, error)

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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