Documentation
¶
Index ¶
- type API
- type ConfigLoader
- type Service
- func (s Service) FindAsset(ctx context.Context, requestedProfile, organization, reference string) (jumpserver.AssetDetail, error)
- func (s Service) ListAssets(ctx context.Context, requestedProfile, organization, search string, ...) (jumpserver.AssetPage, error)
- func (s Service) ListOrganizations(ctx context.Context, requestedProfile string) ([]jumpserver.Organization, error)
- type TokenManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
connectapp.AssetAPI
ListOrganizations(context.Context) ([]jumpserver.Organization, error)
}
type ConfigLoader ¶
type ConfigLoader interface {
Load() (projectconfig.Config, error)
}
type Service ¶
type Service struct {
Config ConfigLoader
Tokens TokenManager
NewAPI func(site, accessToken, organization string) (API, error)
}
func (Service) FindAsset ¶
func (s Service) FindAsset(ctx context.Context, requestedProfile, organization, reference string) (jumpserver.AssetDetail, error)
func (Service) ListAssets ¶
func (Service) ListOrganizations ¶
func (s Service) ListOrganizations(ctx context.Context, requestedProfile string) ([]jumpserver.Organization, error)
type TokenManager ¶
Click to show internal directories.
Click to hide internal directories.