entitlements

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEntitlementUrl

func BuildEntitlementUrl(bintrayDetails auth.BintrayDetails, details *versions.Path, entId string) string

func BuildEntitlementsUrl

func BuildEntitlementsUrl(bintrayDetails auth.BintrayDetails, details *versions.Path) string

func CreateVersionDetails

func CreateVersionDetails(versionStr string) (*versions.Path, error)

Types

type EntitlementsService

type EntitlementsService struct {
	BintrayDetails auth.BintrayDetails
	// contains filtered or unexported fields
}

func NewService

func NewService(client *httpclient.HttpClient) *EntitlementsService

func (*EntitlementsService) Create

func (es *EntitlementsService) Create(params *Params) error

func (*EntitlementsService) Delete

func (es *EntitlementsService) Delete(id string, path *versions.Path) error

func (*EntitlementsService) Show

func (es *EntitlementsService) Show(id string, path *versions.Path) error

func (*EntitlementsService) ShowAll

func (es *EntitlementsService) ShowAll(path *versions.Path) error

func (*EntitlementsService) Update

func (es *EntitlementsService) Update(params *Params) error

type Params

type Params struct {
	VersionPath *versions.Path
	Id          string
	Path        string
	Access      string
	Keys        string
}

func NewEntitlementsParams

func NewEntitlementsParams() *Params

Jump to

Keyboard shortcuts

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