services

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 11 Imported by: 7 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	InviteCliSourceName = "cli"
)

Variables

View Source
var MaxWait = defaultMaxWait

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 Context added in v1.54.2

type Context struct {
	VcsCommit *VcsCommit `json:"vcs_commit,omitempty"`
}

type CreateOidcTokenParams added in v1.52.0

type CreateOidcTokenParams struct {
	GrantType             string   `json:"grant_type,omitempty"`
	SubjectTokenType      string   `json:"subject_token_type,omitempty"`
	OidcTokenID           string   `json:"subject_token,omitempty"`
	ProviderName          string   `json:"provider_name,omitempty"`
	ProjectKey            string   `json:"project_key,omitempty"`
	JobId                 string   `json:"job_id,omitempty"`
	RunId                 string   `json:"run_id,omitempty"`
	Repo                  string   `json:"repo,omitempty"`
	ApplicationKey        string   `json:"application_key,omitempty"`
	Audience              string   `json:"audience,omitempty"`
	ProviderType          string   `json:"provider_type,omitempty"`
	IdentityMappingName   string   `json:"identity_mapping_name,omitempty"`
	IncludeReferenceToken *bool    `json:"include_reference_token,omitempty"`
	Context               *Context `json:"context,omitempty"`
}

type CreateTokenParams added in v1.13.0

type CreateTokenParams struct {
	auth.CommonTokenParams
	IncludeReferenceToken *bool  `json:"include_reference_token,omitempty"`
	Username              string `json:"username,omitempty"`
	ProjectKey            string `json:"project_key,omitempty"`
	Description           string `json:"description,omitempty"`
}

func NewCreateTokenParams added in v1.13.0

func NewCreateTokenParams(params CreateTokenParams) 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 InvitedUser struct {
	InvitedEmail string `json:"invited_email,omitempty" csv:"invited_email,omitempty"`
	Source       string `json:"source,omitempty" csv:"source,omitempty"`
}

type LoginAuthRequestBody added in v1.31.1

type LoginAuthRequestBody struct {
	Session string `json:"session,omitempty"`
}

type LoginService added in v1.31.1

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

func NewLoginService added in v1.31.1

func NewLoginService(client *jfroghttpclient.JfrogHttpClient) *LoginService

func (*LoginService) GetLoginAuthenticationToken added in v1.31.1

func (ls *LoginService) GetLoginAuthenticationToken(uuid string) (token auth.CommonTokenParams, err error)

func (*LoginService) SendLoginAuthenticationRequest added in v1.31.1

func (ls *LoginService) SendLoginAuthenticationRequest(uuid string) error

type PingService added in v1.26.0

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

func NewPingService added in v1.26.0

func NewPingService(client *jfroghttpclient.JfrogHttpClient) *PingService

func (*PingService) Ping added in v1.26.0

func (ps *PingService) Ping() ([]byte, error)

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 ProjectGroup struct {
	Name  string   `json:"name"`
	Roles []string `json:"roles"`
}

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) GetAll added in v1.26.0

func (ps *ProjectService) GetAll() ([]Project, 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) ExchangeOidcToken added in v1.52.0

func (ps *TokenService) ExchangeOidcToken(params CreateOidcTokenParams) (auth.OidcTokenResponseData, error)

func (*TokenService) RefreshAccessToken added in v1.13.0

func (ps *TokenService) RefreshAccessToken(params CreateTokenParams) (auth.CreateTokenResponseData, error)

type VcsCommit added in v1.54.2

type VcsCommit struct {
	VcsUrl   string `json:"vcs_url,omitempty"`
	Branch   string `json:"branch,omitempty"`
	Revision string `json:"revision,omitempty"`
}

Jump to

Keyboard shortcuts

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