Documentation
¶
Index ¶
- Constants
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func NewStaticTokenSource(ctx context.Context, token string) oauth2.TokenSource
- func NewTokenSource(ctx context.Context, clientID string, clientSecret string, tokenHost string) (oauth2.TokenSource, error)
- func String(s string) *string
- type AWSExternalIDSettings
- type ClientConfig
- func (c *ClientConfig) GetServerURL() string
- func (c *ClientConfig) ServerURL() string
- func (c *ClientConfig) SetServerURL(serverURL string) error
- func (c *ClientConfig) SetTenant(tenant string) error
- func (c *ClientConfig) Tenant() string
- func (c *ClientConfig) UseWithServer() bool
- func (c *ClientConfig) UseWithTenant() bool
- type ClientCredentials
- type ConductoroneAPI
- type CustomOptions
- type CustomSDKOption
- type DeviceCodeResponse
- type HTTPClient
- type SDKOption
- func WithClient(client HTTPClient) SDKOption
- func WithServerIndex(serverIndex int) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
- func WithTenant(input string) (SDKOption, error)
- func WithTenantDomain(tenantDomain string) SDKOption
Constants ¶
const ClientIdGolangSDK = "2RCzHlak5q7CY14SdBc8HoZEJRf"
Variables ¶
var ( ErrInvalidClientSecret = errors.New("invalid client secret") ErrInvalidClientID = errors.New("invalid client id") )
var ServerList = []string{
"https://{tenantDomain}.conductor.one",
}
ServerList contains the list of servers available to the SDK
Functions ¶
func NewStaticTokenSource ¶ added in v0.4.19
func NewStaticTokenSource(ctx context.Context, token string) oauth2.TokenSource
func NewTokenSource ¶
Types ¶
type AWSExternalIDSettings ¶
type AWSExternalIDSettings struct {
// contains filtered or unexported fields
}
func (*AWSExternalIDSettings) Get ¶
func (s *AWSExternalIDSettings) Get(ctx context.Context) (*operations.C1APISettingsV1AWSExternalIDSettingsGetResponse, error)
Get Invokes the c1.api.settings.v1.AWSExternalIDSettings.Get method.
type ClientConfig ¶
type ClientConfig struct {
// contains filtered or unexported fields
}
func NormalizeTenant ¶
func NormalizeTenant(input string) (*ClientConfig, error)
func ParseClientID ¶
func ParseClientID(input string) (*ClientConfig, error)
func (*ClientConfig) GetServerURL ¶
func (c *ClientConfig) GetServerURL() string
GetServerURL returns the server URL. If serverURL is empty (""), it constructs the server URL using the tenant. However, if the tenant is also empty, then it will return an empty string.
func (*ClientConfig) ServerURL ¶
func (c *ClientConfig) ServerURL() string
ServerURL returns the server URL.
func (*ClientConfig) SetServerURL ¶
func (c *ClientConfig) SetServerURL(serverURL string) error
func (*ClientConfig) SetTenant ¶
func (c *ClientConfig) SetTenant(tenant string) error
func (*ClientConfig) Tenant ¶
func (c *ClientConfig) Tenant() string
func (*ClientConfig) UseWithServer ¶
func (c *ClientConfig) UseWithServer() bool
func (*ClientConfig) UseWithTenant ¶
func (c *ClientConfig) UseWithTenant() bool
type ClientCredentials ¶
type ConductoroneAPI ¶
type ConductoroneAPI struct { AppEntitlementOwners *appEntitlementOwners AppEntitlementUserBinding *appEntitlementUserBinding AppEntitlements *appEntitlements AppEntitlementsProxy *appEntitlementsProxy AppOwners *appOwners AppReport *appReport AppReportAction *appReportAction AppResource *appResource AppResourceOwners *appResourceOwners AppResourceSearch *appResourceSearch AppResourceType *appResourceType AppSearch *appSearch AppEntitlementSearch *appEntitlementSearch AppUsageControls *appUsageControls Apps *apps Attributes *attributes AttributeSearch *attributeSearch Auth *auth AWSExternalIDSettings *AWSExternalIDSettings Connector *connector Directory *directory PersonalClient *personalClient Policies *policies PolicySearch *policySearch RequestCatalogManagement *requestCatalogManagement RequestCatalogSearch *requestCatalogSearch Roles *roles Task *task TaskActions *taskActions TaskSearch *taskSearch User *user UserSearch *userSearch Webhooks *webhooks WebhooksSearch *webhooksSearch // contains filtered or unexported fields }
ConductoroneAPI - ConductorOne API: The ConductorOne API is a HTTP API for managing ConductorOne resources.
func New ¶
func New(opts ...SDKOption) *ConductoroneAPI
New creates a new instance of the SDK with the provided options
func NewWithCredentials ¶
func NewWithCredentials(ctx context.Context, cred *ClientCredentials, opts ...CustomSDKOption) (*ConductoroneAPI, error)
type CustomOptions ¶
type CustomOptions struct { *ClientConfig // contains filtered or unexported fields }
type CustomSDKOption ¶
type CustomSDKOption func(*CustomOptions)
func WithLog ¶
func WithLog(logger *zap.Logger) CustomSDKOption
func WithTLSConfig ¶
func WithTLSConfig(tlsConfig *tls.Config) CustomSDKOption
func WithTenantCustom ¶
func WithTenantCustom(input string) (CustomSDKOption, error)
func WithUserAgent ¶
func WithUserAgent(userAgent string) CustomSDKOption
type DeviceCodeResponse ¶
type HTTPClient ¶
HTTPClient provides an interface for suplying the SDK with a custom HTTP client
type SDKOption ¶
type SDKOption func(*ConductoroneAPI)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL
func WithTemplatedServerURL ¶
WithTemplatedServerURL allows the overriding of the default server URL with a templated URL populated with the provided parameters
func WithTenant ¶
func WithTenantDomain ¶
WithTenantDomain allows setting the $name variable for url substitution
Source Files
¶
- appentitlementowners.go
- appentitlements.go
- appentitlementsearch.go
- appentitlementsproxy.go
- appentitlementuserbinding.go
- appowners.go
- appreport.go
- appreportaction.go
- appresource.go
- appresourceowners.go
- appresourcesearch.go
- appresourcetype.go
- apps.go
- appsearch.go
- appusagecontrols.go
- attributes.go
- attributesearch.go
- auth.go
- awsexternalidsettings.go
- conductoroneapi.go
- connector.go
- directory.go
- extra_sdk_options.go
- login.go
- personalclient.go
- policies.go
- policysearch.go
- requestcatalogmanagement.go
- requestcatalogsearch.go
- roles.go
- task.go
- taskactions.go
- tasksearch.go
- token_source.go
- user.go
- usersearch.go
- webhooks.go
- webhookssearch.go