Documentation ¶
Index ¶
- Constants
- type AdminPrivileges
- type CreateTokenParams
- type InviteService
- type InvitedUser
- type Project
- type ProjectGroup
- type ProjectGroups
- type ProjectParams
- type ProjectService
- func (ps *ProjectService) AssignRepo(repoName, projectKey string, isForce bool) error
- func (ps *ProjectService) Create(params ProjectParams) error
- func (ps *ProjectService) Delete(projectKey string) error
- func (ps *ProjectService) DeleteExistingGroup(projectKey string, groupName string) error
- func (ps *ProjectService) Get(projectKey string) (u *Project, err error)
- func (ps *ProjectService) GetGroup(projectKey string, groupName string) (*ProjectGroup, error)
- func (ps *ProjectService) GetGroups(projectKey string) (*[]ProjectGroup, error)
- func (ps *ProjectService) UnassignRepo(repoName string) error
- func (ps *ProjectService) Update(params ProjectParams) error
- func (ps *ProjectService) UpdateGroup(projectKey string, groupName string, group ProjectGroup) error
- type TokenService
Constants ¶
View Source
const (
InviteCliSourceName = "cli"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminPrivileges ¶
type CreateTokenParams ¶ added in v1.13.0
type CreateTokenParams struct {
auth.CommonTokenParams
}
func NewCreateTokenParams ¶ added in v1.13.0
func NewCreateTokenParams(params auth.CommonTokenParams) CreateTokenParams
type InviteService ¶ added in v1.13.0
type InviteService struct { ServiceDetails auth.ServiceDetails // contains filtered or unexported fields }
func NewInviteService ¶ added in v1.13.0
func NewInviteService(client *jfroghttpclient.JfrogHttpClient) *InviteService
func (*InviteService) InviteUser ¶ added in v1.13.0
func (us *InviteService) InviteUser(email, source string) error
type InvitedUser ¶ added in v1.13.0
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 ProjectGroup ¶ added in v1.9.0
type ProjectGroups ¶ added in v1.9.0
type ProjectGroups struct {
Members []ProjectGroup `json:"members"`
}
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) DeleteExistingGroup ¶ added in v1.9.0
func (ps *ProjectService) DeleteExistingGroup(projectKey string, groupName string) error
func (*ProjectService) Get ¶
func (ps *ProjectService) Get(projectKey string) (u *Project, err error)
func (*ProjectService) GetGroup ¶ added in v1.9.0
func (ps *ProjectService) GetGroup(projectKey string, groupName string) (*ProjectGroup, error)
func (*ProjectService) GetGroups ¶ added in v1.9.0
func (ps *ProjectService) GetGroups(projectKey string) (*[]ProjectGroup, error)
func (*ProjectService) UnassignRepo ¶
func (ps *ProjectService) UnassignRepo(repoName string) error
func (*ProjectService) Update ¶
func (ps *ProjectService) Update(params ProjectParams) error
func (*ProjectService) UpdateGroup ¶ added in v1.9.0
func (ps *ProjectService) UpdateGroup(projectKey string, groupName string, group ProjectGroup) error
type TokenService ¶ added in v1.13.0
type TokenService struct { ServiceDetails auth.ServiceDetails // contains filtered or unexported fields }
func NewTokenService ¶ added in v1.13.0
func NewTokenService(client *jfroghttpclient.JfrogHttpClient) *TokenService
func (*TokenService) CreateAccessToken ¶ added in v1.13.0
func (ps *TokenService) CreateAccessToken(params CreateTokenParams) (auth.CreateTokenResponseData, error)
func (*TokenService) RefreshAccessToken ¶ added in v1.13.0
func (ps *TokenService) RefreshAccessToken(token auth.CommonTokenParams) (auth.CreateTokenResponseData, error)
Click to show internal directories.
Click to hide internal directories.