Documentation ¶
Index ¶
- Constants
- func ConnectorTypeFromDeployment(ct sdk.DeploymentType) string
- func ConnectorTypeFromString(ct string) sdk.DeploymentType
- func NewRateLimitTransport(requestsPerSecond float64, burst int, roundTripper http.RoundTripper) http.RoundTripper
- type AWSRequestBody
- type AccessPolicyAPI
- func (api *AccessPolicyAPI) CreateAccessPolicy(accessPolicy *dto.AccessPolicy) (*dto.AccessPolicy, error)
- func (api *AccessPolicyAPI) DeleteAccessPolicy(policyId string) error
- func (api *AccessPolicyAPI) GetAccessPolicy(policyId string) (*dto.AccessPolicy, error)
- func (api *AccessPolicyAPI) UpdateAccessPolicy(accessPolicy *dto.AccessPolicy) (*dto.AccessPolicy, error)
- type ApplicationAPI
- func (api *ApplicationAPI) BindApplicationToSite(application *dto.Application, siteID string) error
- func (api *ApplicationAPI) CreateApplication(application *dto.Application) (*dto.Application, error)
- func (api *ApplicationAPI) DeleteApplication(applicationID string) error
- func (api *ApplicationAPI) GetApplicationById(applicationID string) (*dto.Application, error)
- func (api *ApplicationAPI) UpdateApplication(application *dto.Application) (*dto.Application, error)
- type CollectionAPI
- func (c *CollectionAPI) CreateCollection(name string) (*dto.Collection, error)
- func (c *CollectionAPI) DeleteCollection(collectionID string) error
- func (c *CollectionAPI) GetCollection(collectionID string) (*dto.Collection, error)
- func (c *CollectionAPI) GetCollectionSiteLinks(collectionID string) (*[]dto.CollectionSiteLink, error)
- func (c *CollectionAPI) GetCollectionsBySite(siteID string) (*[]string, error)
- func (c *CollectionAPI) LinkSiteToCollection(links []dto.CollectionSiteLink) (*[]dto.CollectionSiteLink, error)
- func (c *CollectionAPI) UnlinkSiteFromCollection(link dto.CollectionSiteLink) error
- func (c *CollectionAPI) UpdateCollection(name string, collectionID string) (*dto.Collection, error)
- type ConnectorsAPI
- func (api *ConnectorsAPI) CreateConnector(connector *dto.Connector, siteID string) (*dto.Connector, error)
- func (api *ConnectorsAPI) DeleteConnector(connectorID string) error
- func (api *ConnectorsAPI) GetConnectorByID(connectorID string) (*dto.Connector, error)
- func (api *ConnectorsAPI) GetConnectorCommand(connectorID string) (string, error)
- type GroupAPI
- func (g *GroupAPI) AssignUser(groupId string, userId string) error
- func (g *GroupAPI) CheckAssignedUser(groupId string, userId string) (bool, error)
- func (g *GroupAPI) GetGroupId(identityProviderId string, groupName string) (string, error)
- func (g *GroupAPI) RemoveUser(groupId string, userId string) error
- type IdentityProviderAPI
- func (u *IdentityProviderAPI) GetGroupDisplayNameTypeById(identityProviderId string, IdentifierInProvider string) (string, error)
- func (u *IdentityProviderAPI) GetIdentityProviderId(identityProviderName string) (string, error)
- func (u *IdentityProviderAPI) GetIdentityProviderTypeById(identityProviderId string) (sdk.IdentityProviderType, error)
- func (u *IdentityProviderAPI) GetUserDisplayNameTypeById(identityProviderId string, IdentifierInProvider string) (string, error)
- type IntegrationAPI
- func (u *IntegrationAPI) CreateAWSIntegration(integrationName string) (*dto.AwsIntegration, error)
- func (u *IntegrationAPI) DeleteAWSIntegration(integrationID string) error
- func (u *IntegrationAPI) GetIntegrationId(integrationName string) (string, error)
- func (u *IntegrationAPI) ReadAWSIntegration(integrationID string) (*dto.AwsIntegration, error)
- func (u *IntegrationAPI) ReadAWSIntegrationBind(integrationID string) (*dto.AwsIntegrationBind, error)
- func (u *IntegrationAPI) UpdateAWSIntegration(awsBody *AWSRequestBody) (*dto.AwsIntegrationBind, error)
- type LuminateService
- type RateLimitTransport
- type RoleBindingsAPI
- func (r *RoleBindingsAPI) CreateCollectionRoleBindings(roleDTO *dto.CreateCollectionRoleDTO) ([]*dto.RoleBinding, error)
- func (r *RoleBindingsAPI) CreateSiteRoleBindings(roleDTO *dto.CreateSiteRoleDTO) ([]*dto.RoleBinding, error)
- func (r *RoleBindingsAPI) CreateTenantRoleBindings(tenantRole *dto.CreateRoleDTO) ([]*dto.RoleBinding, error)
- func (r *RoleBindingsAPI) DeleteRoleBindings(roleID string) error
- func (r *RoleBindingsAPI) ReadRoleBindings(roleID string, roleType string, entityId string, collectionID string, ...) (*dto.RoleBinding, error)
- type SiteAPI
- type SshClientAPI
- type UserAPI
Constants ¶
View Source
const ( MillsBetweenRetries int = 1000 RetrySleepJitter int = 250 MaxRequestsPerSecond float64 = 5 )
Variables ¶
This section is empty.
Functions ¶
func ConnectorTypeFromDeployment ¶
func ConnectorTypeFromDeployment(ct sdk.DeploymentType) string
func ConnectorTypeFromString ¶
func ConnectorTypeFromString(ct string) sdk.DeploymentType
func NewRateLimitTransport ¶
func NewRateLimitTransport(requestsPerSecond float64, burst int, roundTripper http.RoundTripper) http.RoundTripper
Types ¶
type AWSRequestBody ¶
type AWSRequestBody struct { Provider string `json:"provider"` HostnameTagName string `json:"hostname_tag_name"` Name string `json:"name"` AwsExternalID string `json:"aws_external_id"` ID string `json:"id"` LuminateAwsAccountID string `json:"luminate_aws_account_id"` Regions []string `json:"regions"` AwsRoleArn string `json:"aws_role_arn"` }
type AccessPolicyAPI ¶
type AccessPolicyAPI struct {
// contains filtered or unexported fields
}
func NewAccessPolicyAPI ¶
func NewAccessPolicyAPI(client *sdk.APIClient) *AccessPolicyAPI
func (*AccessPolicyAPI) CreateAccessPolicy ¶
func (api *AccessPolicyAPI) CreateAccessPolicy(accessPolicy *dto.AccessPolicy) (*dto.AccessPolicy, error)
func (*AccessPolicyAPI) DeleteAccessPolicy ¶
func (api *AccessPolicyAPI) DeleteAccessPolicy(policyId string) error
func (*AccessPolicyAPI) GetAccessPolicy ¶
func (api *AccessPolicyAPI) GetAccessPolicy(policyId string) (*dto.AccessPolicy, error)
func (*AccessPolicyAPI) UpdateAccessPolicy ¶
func (api *AccessPolicyAPI) UpdateAccessPolicy(accessPolicy *dto.AccessPolicy) (*dto.AccessPolicy, error)
type ApplicationAPI ¶
type ApplicationAPI struct {
// contains filtered or unexported fields
}
func NewApplicationAPI ¶
func NewApplicationAPI(client *sdk.APIClient) *ApplicationAPI
func (*ApplicationAPI) BindApplicationToSite ¶
func (api *ApplicationAPI) BindApplicationToSite(application *dto.Application, siteID string) error
func (*ApplicationAPI) CreateApplication ¶
func (api *ApplicationAPI) CreateApplication(application *dto.Application) (*dto.Application, error)
func (*ApplicationAPI) DeleteApplication ¶
func (api *ApplicationAPI) DeleteApplication(applicationID string) error
func (*ApplicationAPI) GetApplicationById ¶
func (api *ApplicationAPI) GetApplicationById(applicationID string) (*dto.Application, error)
func (*ApplicationAPI) UpdateApplication ¶
func (api *ApplicationAPI) UpdateApplication(application *dto.Application) (*dto.Application, error)
type CollectionAPI ¶
type CollectionAPI struct {
// contains filtered or unexported fields
}
func NewCollectionAPI ¶
func NewCollectionAPI(client *sdk.APIClient) *CollectionAPI
func (*CollectionAPI) CreateCollection ¶
func (c *CollectionAPI) CreateCollection(name string) (*dto.Collection, error)
CreateCollection create collection
func (*CollectionAPI) DeleteCollection ¶
func (c *CollectionAPI) DeleteCollection(collectionID string) error
DeleteCollection delete collection
func (*CollectionAPI) GetCollection ¶
func (c *CollectionAPI) GetCollection(collectionID string) (*dto.Collection, error)
GetCollection get collection by id
func (*CollectionAPI) GetCollectionSiteLinks ¶
func (c *CollectionAPI) GetCollectionSiteLinks(collectionID string) (*[]dto.CollectionSiteLink, error)
GetCollectionSiteLinks get collection site links
func (*CollectionAPI) GetCollectionsBySite ¶
func (c *CollectionAPI) GetCollectionsBySite(siteID string) (*[]string, error)
GetCollectionsBySite get collections by site
func (*CollectionAPI) LinkSiteToCollection ¶
func (c *CollectionAPI) LinkSiteToCollection(links []dto.CollectionSiteLink) (*[]dto.CollectionSiteLink, error)
LinkSiteToCollection link sites to collections
func (*CollectionAPI) UnlinkSiteFromCollection ¶
func (c *CollectionAPI) UnlinkSiteFromCollection(link dto.CollectionSiteLink) error
UnlinkSiteFromCollection unlink site from collection
func (*CollectionAPI) UpdateCollection ¶
func (c *CollectionAPI) UpdateCollection(name string, collectionID string) (*dto.Collection, error)
UpdateCollection update collection
type ConnectorsAPI ¶
type ConnectorsAPI struct {
// contains filtered or unexported fields
}
func NewConnectorsAPI ¶
func NewConnectorsAPI(client *sdk.APIClient) *ConnectorsAPI
func (*ConnectorsAPI) CreateConnector ¶
func (*ConnectorsAPI) DeleteConnector ¶
func (api *ConnectorsAPI) DeleteConnector(connectorID string) error
func (*ConnectorsAPI) GetConnectorByID ¶
func (api *ConnectorsAPI) GetConnectorByID(connectorID string) (*dto.Connector, error)
func (*ConnectorsAPI) GetConnectorCommand ¶
func (api *ConnectorsAPI) GetConnectorCommand(connectorID string) (string, error)
type GroupAPI ¶
type GroupAPI struct {
// contains filtered or unexported fields
}
func NewGroupAPI ¶
func (*GroupAPI) CheckAssignedUser ¶
func (*GroupAPI) GetGroupId ¶
type IdentityProviderAPI ¶
type IdentityProviderAPI struct {
// contains filtered or unexported fields
}
func NewIdentityProviderAPI ¶
func NewIdentityProviderAPI(client *sdk.APIClient) *IdentityProviderAPI
func (*IdentityProviderAPI) GetGroupDisplayNameTypeById ¶
func (u *IdentityProviderAPI) GetGroupDisplayNameTypeById(identityProviderId string, IdentifierInProvider string) (string, error)
func (*IdentityProviderAPI) GetIdentityProviderId ¶
func (u *IdentityProviderAPI) GetIdentityProviderId(identityProviderName string) (string, error)
func (*IdentityProviderAPI) GetIdentityProviderTypeById ¶
func (u *IdentityProviderAPI) GetIdentityProviderTypeById(identityProviderId string) (sdk.IdentityProviderType, error)
func (*IdentityProviderAPI) GetUserDisplayNameTypeById ¶
func (u *IdentityProviderAPI) GetUserDisplayNameTypeById(identityProviderId string, IdentifierInProvider string) (string, error)
type IntegrationAPI ¶
type IntegrationAPI struct { BasePath string // contains filtered or unexported fields }
func NewIntegrationAPI ¶
func (*IntegrationAPI) CreateAWSIntegration ¶
func (u *IntegrationAPI) CreateAWSIntegration(integrationName string) (*dto.AwsIntegration, error)
func (*IntegrationAPI) DeleteAWSIntegration ¶
func (u *IntegrationAPI) DeleteAWSIntegration(integrationID string) error
func (*IntegrationAPI) GetIntegrationId ¶
func (u *IntegrationAPI) GetIntegrationId(integrationName string) (string, error)
func (*IntegrationAPI) ReadAWSIntegration ¶
func (u *IntegrationAPI) ReadAWSIntegration(integrationID string) (*dto.AwsIntegration, error)
func (*IntegrationAPI) ReadAWSIntegrationBind ¶
func (u *IntegrationAPI) ReadAWSIntegrationBind(integrationID string) (*dto.AwsIntegrationBind, error)
func (*IntegrationAPI) UpdateAWSIntegration ¶
func (u *IntegrationAPI) UpdateAWSIntegration(awsBody *AWSRequestBody) (*dto.AwsIntegrationBind, error)
type LuminateService ¶
type LuminateService struct { TenantBaseDomain string Sites *SiteAPI Connectors *ConnectorsAPI Applications *ApplicationAPI AccessPolicies *AccessPolicyAPI Users *UserAPI `` Groups *GroupAPI IdentityProviders *IdentityProviderAPI IntegrationAPI *IntegrationAPI SshClientApi *SshClientAPI CollectionAPI *CollectionAPI RoleBindingsAPI *RoleBindingsAPI // contains filtered or unexported fields }
type RateLimitTransport ¶
type RateLimitTransport struct {
// contains filtered or unexported fields
}
type RoleBindingsAPI ¶
type RoleBindingsAPI struct {
// contains filtered or unexported fields
}
func NewRoleBindingsAPI ¶
func NewRoleBindingsAPI(client *sdk.APIClient) *RoleBindingsAPI
func (*RoleBindingsAPI) CreateCollectionRoleBindings ¶
func (r *RoleBindingsAPI) CreateCollectionRoleBindings(roleDTO *dto.CreateCollectionRoleDTO) ([]*dto.RoleBinding, error)
CreateCollectionRoleBindings assign tenant role to admin
func (*RoleBindingsAPI) CreateSiteRoleBindings ¶
func (r *RoleBindingsAPI) CreateSiteRoleBindings(roleDTO *dto.CreateSiteRoleDTO) ([]*dto.RoleBinding, error)
CreateSiteRoleBindings assign site role to admin
func (*RoleBindingsAPI) CreateTenantRoleBindings ¶
func (r *RoleBindingsAPI) CreateTenantRoleBindings(tenantRole *dto.CreateRoleDTO) ([]*dto.RoleBinding, error)
CreateTenantRoleBindings assign tenant role to admin
func (*RoleBindingsAPI) DeleteRoleBindings ¶
func (r *RoleBindingsAPI) DeleteRoleBindings(roleID string) error
DeleteRoleBindings delete role bindings by id
func (*RoleBindingsAPI) ReadRoleBindings ¶
func (r *RoleBindingsAPI) ReadRoleBindings( roleID string, roleType string, entityId string, collectionID string, siteID string, ) (*dto.RoleBinding, error)
ReadRoleBindings get role
type SiteAPI ¶
type SiteAPI struct {
// contains filtered or unexported fields
}
func NewSiteAPI ¶
func (*SiteAPI) DeleteSite ¶
type SshClientAPI ¶
type SshClientAPI struct {
// contains filtered or unexported fields
}
func NewSshClientAPI ¶
func NewSshClientAPI(client *sdk.APIClient) *SshClientAPI
func (*SshClientAPI) GetSshClientByName ¶
func (g *SshClientAPI) GetSshClientByName(sshClientName string) (*sdk.SshClient, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.