services

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminPrivileges

type AdminPrivileges struct {
	ManageMembers   bool `json:"manage_members,omitempty"`
	ManageResources bool `json:"manage_resources,omitempty"`
	IndexResources  bool `json:"index_resources,omitempty"`
}

type Project

type Project struct {
	DisplayName       string           `json:"display_name,omitempty"`
	Description       string           `json:"description,omitempty"`
	AdminPrivileges   *AdminPrivileges `json:"admin_privileges,omitempty"`
	SoftLimit         bool             `json:"soft_limit,omitempty"`
	StorageQuotaBytes float64          `json:"storage_quota_bytes,omitempty"`
	ProjectKey        string           `json:"project_key,omitempty"`
}

type ProjectParams

type ProjectParams struct {
	ProjectDetails Project
}

func NewProjectParams

func NewProjectParams() ProjectParams

type ProjectService

type ProjectService struct {
	ServiceDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewProjectService

func NewProjectService(client *jfroghttpclient.JfrogHttpClient) *ProjectService

func (*ProjectService) AssignRepo

func (ps *ProjectService) AssignRepo(repoName, projectKey string, isForce bool) error

func (*ProjectService) Create

func (ps *ProjectService) Create(params ProjectParams) error

func (*ProjectService) Delete

func (ps *ProjectService) Delete(projectKey string) error

func (*ProjectService) Get

func (ps *ProjectService) Get(projectKey string) (u *Project, err error)

func (*ProjectService) UnassignRepo

func (ps *ProjectService) UnassignRepo(repoName string) error

func (*ProjectService) Update

func (ps *ProjectService) Update(params ProjectParams) error

Jump to

Keyboard shortcuts

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