Documentation ¶
Index ¶
- Constants
- Variables
- func FindConfigAsCodeItemByPath(rootItem *cac.ConfigAsCodeItem, path cac.YamlPath) *cac.ConfigAsCodeItem
- func FindConfigAsCodeItemByUUID(rootItem *cac.ConfigAsCodeItem, uuid string) *cac.ConfigAsCodeItem
- type ApiClient
- func (c *ApiClient) ExecuteGraphQLQuery(query *GraphQLQuery, responseObj interface{}) error
- func (client *ApiClient) NewAuthorizedDeleteRequest(path string) (*retryablehttp.Request, error)
- func (client *ApiClient) NewAuthorizedGetRequest(path string) (*retryablehttp.Request, error)
- func (client *ApiClient) NewAuthorizedPostRequest(path string, rawBody interface{}) (*retryablehttp.Request, error)
- func (c *ApiClient) NewAuthorizedRequest(path string, method string, rawBody interface{}) (*retryablehttp.Request, error)
- func (client *ApiClient) NewGraphQLRequest(query *GraphQLQuery) (*retryablehttp.Request, error)
- type ApplicationClient
- func (ac *ApplicationClient) CreateApplication(input *graphql.CreateApplicationInput) (*graphql.Application, error)
- func (ac *ApplicationClient) DeleteApplication(id string) error
- func (ac *ApplicationClient) GetApplicationById(id string) (*graphql.Application, error)
- func (ac *ApplicationClient) GetApplicationByName(name string) (*graphql.Application, error)
- func (ac *ApplicationClient) ListApplications(limit int, offset int) ([]*graphql.Application, *graphql.PageInfo, error)
- func (c *ApplicationClient) RemoveGitSyncConfig(applicationId string) error
- func (ac *ApplicationClient) UpdateApplication(input *graphql.UpdateApplicationInput) (*graphql.Application, error)
- func (c *ApplicationClient) UpdateGitSyncConfig(config *graphql.UpdateApplicationGitSyncConfigInput) (*graphql.GitSyncConfig, error)
- type ApprovalClient
- type CloudProviderClient
- func (c *CloudProviderClient) CreateAwsCloudProvider(provider *graphql.AwsCloudProvider) (*graphql.AwsCloudProvider, error)
- func (c *CloudProviderClient) CreateAzureCloudProvider(provider *graphql.AzureCloudProvider) (*graphql.AzureCloudProvider, error)
- func (c *CloudProviderClient) CreateGcpCloudProvider(provider *graphql.GcpCloudProvider) (*graphql.GcpCloudProvider, error)
- func (c *CloudProviderClient) CreateKubernetesCloudProvider(provider *graphql.KubernetesCloudProvider) (*graphql.KubernetesCloudProvider, error)
- func (c *CloudProviderClient) CreatePcfCloudProvider(provider *graphql.PcfCloudProvider) (*graphql.PcfCloudProvider, error)
- func (c *CloudProviderClient) CreatePhysicalDataCenterCloudProvider(provider *graphql.PhysicalDataCenterCloudProvider) (*graphql.PhysicalDataCenterCloudProvider, error)
- func (c *CloudProviderClient) CreateSpotInstCloudProvider(provider *graphql.SpotInstCloudProvider) (*graphql.SpotInstCloudProvider, error)
- func (c *CloudProviderClient) DeleteCloudProvider(id string) error
- func (c *CloudProviderClient) GetAwsCloudProviderById(Id string) (*graphql.AwsCloudProvider, error)
- func (c *CloudProviderClient) GetAwsCloudProviderByName(name string) (*graphql.AwsCloudProvider, error)
- func (c *CloudProviderClient) GetAzureCloudProviderById(Id string) (*graphql.AzureCloudProvider, error)
- func (c *CloudProviderClient) GetAzureCloudProviderByName(name string) (*graphql.AzureCloudProvider, error)
- func (c *CloudProviderClient) GetGcpCloudProviderById(id string) (*graphql.GcpCloudProvider, error)
- func (c *CloudProviderClient) GetGcpCloudProviderByName(name string) (*graphql.GcpCloudProvider, error)
- func (c *CloudProviderClient) GetKubernetesCloudProviderById(id string) (*graphql.KubernetesCloudProvider, error)
- func (c *CloudProviderClient) GetKubernetesCloudProviderByName(name string) (*graphql.KubernetesCloudProvider, error)
- func (c *CloudProviderClient) GetPcfCloudProviderById(id string) (*graphql.PcfCloudProvider, error)
- func (c *CloudProviderClient) GetPcfCloudProviderByName(name string) (*graphql.PcfCloudProvider, error)
- func (c *CloudProviderClient) GetPhysicalDataCEnterCloudProviderById(id string) (*graphql.PhysicalDataCenterCloudProvider, error)
- func (c *CloudProviderClient) GetPhysicalDatacenterCloudProviderByName(name string) (*graphql.PhysicalDataCenterCloudProvider, error)
- func (c *CloudProviderClient) GetSpotInstCloudProviderById(id string) (*graphql.SpotInstCloudProvider, error)
- func (c *CloudProviderClient) GetSpotInstCloudProviderByName(name string) (*graphql.SpotInstCloudProvider, error)
- func (ac *CloudProviderClient) ListCloudProviders(limit int, offset int) ([]*graphql.CloudProvider, *graphql.PageInfo, error)
- func (c *CloudProviderClient) UpdateAwsCloudProvider(id string, cp *graphql.UpdateAwsCloudProviderInput) (*graphql.AwsCloudProvider, error)
- func (c *CloudProviderClient) UpdateAzureCloudProvider(id string, cp *graphql.UpdateAzureCloudProviderInput) (*graphql.AzureCloudProvider, error)
- func (c *CloudProviderClient) UpdateGcpCloudProvider(id string, cp *graphql.UpdateGcpCloudProviderInput) (*graphql.GcpCloudProvider, error)
- func (c *CloudProviderClient) UpdateKubernetesCloudProvider(id string, cp *graphql.UpdateKubernetesCloudProviderInput) (*graphql.KubernetesCloudProvider, error)
- func (c *CloudProviderClient) UpdatePcfCloudProvider(id string, cp *graphql.UpdatePcfCloudProviderInput) (*graphql.PcfCloudProvider, error)
- func (c *CloudProviderClient) UpdatePhysicalDataCenterCloudProvider(id string, cp *graphql.UpdatePhysicalDataCenterCloudProviderInput) (*graphql.PhysicalDataCenterCloudProvider, error)
- func (c *CloudProviderClient) UpdateSpotInstCloudProvider(id string, cp *graphql.UpdateSpotInstCloudProviderInst) (*graphql.SpotInstCloudProvider, error)
- type Config
- type ConfigAsCodeClient
- func (c *ConfigAsCodeClient) DeleteCloudProvider(name string) error
- func (c *ConfigAsCodeClient) DeleteEntity(filePath cac.YamlPath) error
- func (c *ConfigAsCodeClient) DeleteEntityV2(filePath cac.YamlPath, yamlContent string) error
- func (c *ConfigAsCodeClient) DeleteEnvironment(appName string, envName string) error
- func (c *ConfigAsCodeClient) DeleteInfraDefinition(applicationId string, environmentId string, infraId string) error
- func (c *ConfigAsCodeClient) DeleteService(applicationId string, serviceId string) error
- func (c *ConfigAsCodeClient) ExecuteRequest(request *retryablehttp.Request) (*cac.ConfigAsCodeItem, error)
- func (c *ConfigAsCodeClient) FindObjectById(applicationId string, objectId string, out interface{}) error
- func (c *ConfigAsCodeClient) FindObjectByPath(applicationId string, filePath cac.YamlPath, obj interface{}) error
- func (c *ConfigAsCodeClient) FindRootAccountObjectByName(name string) (*cac.ConfigAsCodeItem, error)
- func (c *ConfigAsCodeClient) FindYamlByPath(applicationId string, filePath cac.YamlPath) (*cac.YamlEntity, error)
- func (c *ConfigAsCodeClient) GetApplicationById(applicationId string) (*cac.Application, error)
- func (c *ConfigAsCodeClient) GetApplicationByName(name string) (*cac.Application, error)
- func (c *ConfigAsCodeClient) GetCloudProviderById(providerId string, out interface{}) error
- func (c *ConfigAsCodeClient) GetCloudProviderByName(name string, obj interface{}) error
- func (c *ConfigAsCodeClient) GetDirectoryItemContent(restName string, uuid string, applicationId string) (*cac.ConfigAsCodeItem, error)
- func (c *ConfigAsCodeClient) GetDirectoryTree(applicationId string) (*cac.ConfigAsCodeItem, error)
- func (c *ConfigAsCodeClient) GetEnvironmentById(applicationId string, environmentId string) (*cac.Environment, error)
- func (c *ConfigAsCodeClient) GetEnvironmentByName(applicationId string, environmentName string) (*cac.Environment, error)
- func (c *ConfigAsCodeClient) GetInfraDefinitionById(appId string, envId string, infraId string) (*cac.InfrastructureDefinition, error)
- func (c *ConfigAsCodeClient) GetInfraDefinitionByName(appId string, envId string, infraName string) (*cac.InfrastructureDefinition, error)
- func (c *ConfigAsCodeClient) GetServiceById(applicationId string, serviceId string) (*cac.Service, error)
- func (c *ConfigAsCodeClient) GetTemplateLibraryRootPathName() (cac.YamlPath, error)
- func (c *ConfigAsCodeClient) GetYamlDetails(item *cac.ConfigAsCodeItem, filePath cac.YamlPath, applicationId string) (*cac.YamlEntity, error)
- func (c *ConfigAsCodeClient) ParseObject(item *cac.ConfigAsCodeItem, filePath cac.YamlPath, applicationId string, ...) error
- func (c *ConfigAsCodeClient) UpsertAwsCloudProvider(input *cac.AwsCloudProvider) (*cac.AwsCloudProvider, error)
- func (c *ConfigAsCodeClient) UpsertAzureCloudProvider(input *cac.AzureCloudProvider) (*cac.AzureCloudProvider, error)
- func (c *ConfigAsCodeClient) UpsertCloudProvider(input interface{}, output interface{}) error
- func (c *ConfigAsCodeClient) UpsertEnvironment(input *cac.Environment) (*cac.Environment, error)
- func (c *ConfigAsCodeClient) UpsertGcpCloudProvider(input *cac.GcpCloudProvider) (*cac.GcpCloudProvider, error)
- func (c *ConfigAsCodeClient) UpsertInfraDefinition(input *cac.InfrastructureDefinition) (*cac.InfrastructureDefinition, error)
- func (c *ConfigAsCodeClient) UpsertKubernetesCloudProvider(input *cac.KubernetesCloudProvider) (*cac.KubernetesCloudProvider, error)
- func (c *ConfigAsCodeClient) UpsertObject(input interface{}, filePath cac.YamlPath, responseObj interface{}) error
- func (c *ConfigAsCodeClient) UpsertPcfCloudProvider(input *cac.PcfCloudProvider) (*cac.PcfCloudProvider, error)
- func (c *ConfigAsCodeClient) UpsertPhysicalDataCenterCloudProvider(input *cac.PhysicalDatacenterCloudProvider) (*cac.PhysicalDatacenterCloudProvider, error)
- func (c *ConfigAsCodeClient) UpsertRawYaml(filePath cac.YamlPath, yaml []byte) (*cac.ConfigAsCodeItem, error)
- func (c *ConfigAsCodeClient) UpsertService(input *cac.Service) (*cac.Service, error)
- func (c *ConfigAsCodeClient) UpsertSpotInstCloudProvider(input *cac.SpotInstCloudProvider) (*cac.SpotInstCloudProvider, error)
- func (c *ConfigAsCodeClient) UpsertYamlEntity(filePath cac.YamlPath, entity interface{}) (*cac.ConfigAsCodeItem, error)
- type ConnectorClient
- func (c *ConnectorClient) CreateGitConnector(connector *graphql.GitConnectorInput) (*graphql.GitConnector, error)
- func (c *ConnectorClient) DeleteConnector(id string) error
- func (c *ConnectorClient) GetGitConnectorById(id string) (*graphql.GitConnector, error)
- func (c *ConnectorClient) GetGitConnectorByName(name string) (*graphql.GitConnector, error)
- func (c *ConnectorClient) ListGitConnectors(limit int, offset int) ([]*graphql.GitConnector, *graphql.PageInfo, error)
- func (c *ConnectorClient) UpdateGitConnector(id string, connector *graphql.GitConnectorInput) (*graphql.GitConnector, error)
- type DelegateClient
- func (c *DelegateClient) DeleteDelegate(delegateId string) error
- func (c *DelegateClient) GetDelegateByHostName(hostName string) (*graphql.Delegate, error)
- func (c *DelegateClient) GetDelegateById(id string) (*graphql.Delegate, error)
- func (c *DelegateClient) GetDelegateByName(name string) (*graphql.Delegate, error)
- func (c *DelegateClient) GetDelegatesByName(name string) ([]*graphql.Delegate, error)
- func (c *DelegateClient) ListDelegates(limit int, offset int) ([]*graphql.Delegate, *graphql.PageInfo, error)
- func (c *DelegateClient) ListDelegatesWithFilters(limit int, offset int, name string, status graphql.DelegateStatus, ...) ([]*graphql.Delegate, *graphql.PageInfo, error)
- func (c *DelegateClient) UpdateDelegateApprovalStatus(input *graphql.DelegateApprovalRejectInput) (*graphql.Delegate, error)
- func (c *DelegateClient) WaitForDelegate(ctx context.Context, delegateName string, timeout time.Duration) (*graphql.Delegate, error)
- type ExecutionClient
- func (c *ExecutionClient) AbortWorkflowOrPipelineById(id, appId string) (*executions.Response, error)
- func (c *ExecutionClient) ExecuteRequest(request *retryablehttp.Request) (*executions.Response, error)
- func (c *ExecutionClient) ExportExecutions(input *graphql.ExportExecutionsInput) (*graphql.ExportExecutionsPayload, error)
- func (c *ExecutionClient) GetPipelineExecutionById(id string) (*graphql.PipelineExecution, error)
- func (c *ExecutionClient) GetWorkflowExecutionById(id string) (*graphql.WorkflowExecution, error)
- func (c *ExecutionClient) StartExecution(input *graphql.StartExecutionInput) (*graphql.StartExecutionPayload, error)
- type GraphQLError
- type GraphQLQuery
- type GraphQLResponseMessage
- type GraphQLStandardResponse
- type InvalidConfigError
- type SSOClient
- type SecretClient
- func (c *SecretClient) CreateEncryptedText(input *graphql.CreateSecretInput) (*graphql.EncryptedText, error)
- func (c *SecretClient) CreateSSHCredential(sshInput *graphql.SSHCredential) (*graphql.SSHCredential, error)
- func (c *SecretClient) DeleteSecret(secretId string, secretType graphql.SecretType) error
- func (c *SecretClient) DeleteSecretObj(secret *graphql.Secret) error
- func (c *SecretClient) GetDefaultSecretManagerId() (string, error)
- func (c *SecretClient) GetEncryptedFileById(id string) (*graphql.EncryptedFile, error)
- func (c *SecretClient) GetEncryptedFileByName(name string) (*graphql.EncryptedFile, error)
- func (c *SecretClient) GetEncryptedTextById(id string) (*graphql.EncryptedText, error)
- func (c *SecretClient) GetEncryptedTextByName(name string) (*graphql.EncryptedText, error)
- func (c *SecretClient) GetSSHCredentialById(id string) (*graphql.SSHCredential, error)
- func (c *SecretClient) GetSSHCredentialByName(name string) (*graphql.SSHCredential, error)
- func (ac *SecretClient) GetSecretManagerById(id string) (*graphql.SecretManager, error)
- func (ac *SecretClient) GetSecretManagerByName(name string) (*graphql.SecretManager, error)
- func (c *SecretClient) GetWinRMCredentialById(id string) (*graphql.WinRMCredential, error)
- func (c *SecretClient) GetWinRMCredentialByName(name string) (*graphql.WinRMCredential, error)
- func (c *SecretClient) ListEncryptedTextSecrets(limit int, offset int) ([]*unpublished.EncryptedText, *graphql.PageInfo, error)
- func (c *SecretClient) ListSSHCredentials() ([]*unpublished.Credential, error)
- func (c *SecretClient) ListSecretManagers() ([]*unpublished.SecretManager, error)
- func (c *SecretClient) ListWinRMCredentials() ([]*unpublished.Credential, error)
- func (c *SecretClient) UpdateEncryptedText(input *graphql.UpdateSecretInput) (*graphql.EncryptedText, error)
- func (c *SecretClient) UpdateSSHCredential(id string, cred *graphql.SSHCredential) (*graphql.SSHCredential, error)
- type ServiceClient
- func (ac *ServiceClient) GetServiceById(id string) (*graphql.Service, error)
- func (ac *ServiceClient) GetServiceByName(appId string, name string) (*graphql.Service, error)
- func (ac *ServiceClient) ListServices(limit int, offset int, filters []*graphql.ServiceFilter) ([]*graphql.Service, *graphql.PageInfo, error)
- func (ac *ServiceClient) ListServicesByApplicationId(appId string, limit int, offset int) ([]*graphql.Service, *graphql.PageInfo, error)
- type TagClient
- type TriggerClient
- type UserClient
- func (c *UserClient) AddUserToGroup(userId string, groupId string) (bool, error)
- func (c *UserClient) CreateUser(input *graphql.CreateUserInput) (*graphql.User, error)
- func (c *UserClient) CreateUserGroup(user *graphql.UserGroup) (*graphql.UserGroup, error)
- func (c *UserClient) DeleteUser(id string) error
- func (c *UserClient) DeleteUserGroup(id string) error
- func (c *UserClient) GetUserByEmail(email string) (*graphql.User, error)
- func (c *UserClient) GetUserById(id string) (*graphql.User, error)
- func (c *UserClient) GetUserByName(name string) (*graphql.User, error)
- func (c *UserClient) GetUserGroupById(id string) (*graphql.UserGroup, error)
- func (c *UserClient) GetUserGroupByName(name string) (*graphql.UserGroup, error)
- func (c *UserClient) IsUserInGroup(userId string, groupId string) (bool, error)
- func (c *UserClient) ListGroupMembershipByUserId(userId string, limit int, offset int) ([]*graphql.UserGroup, *graphql.PageInfo, error)
- func (c *UserClient) ListUserGroups(limit int, offset int) ([]*graphql.UserGroup, *graphql.PageInfo, error)
- func (c *UserClient) ListUsers(limit int, offset int) ([]*graphql.User, *graphql.PageInfo, error)
- func (c *UserClient) RemoveUserFromGroup(userId string, groupId string) (bool, error)
- func (c *UserClient) UpdateUser(input *graphql.UpdateUserInput) (*graphql.User, error)
- func (c *UserClient) UpdateUserGroup(user *graphql.UserGroup) (*graphql.UserGroup, error)
Constants ¶
const DefaultGraphQLApiUrl = "/api/graphql"
Variables ¶
var InfrastructureDefinitionTypeMap = map[cac.InfrastructureType]reflect.Type{ cac.InfrastructureTypes.AwsAmi: reflect.TypeOf(cac.InfrastructureAwsAmi{}), cac.InfrastructureTypes.AwsEcs: reflect.TypeOf(cac.InfrastructureAwsEcs{}), cac.InfrastructureTypes.AwsLambda: reflect.TypeOf(cac.InfrastructureAwsLambda{}), cac.InfrastructureTypes.AwsSSH: reflect.TypeOf(cac.InfrastructureAwsSSH{}), cac.InfrastructureTypes.AzureVmss: reflect.TypeOf(cac.InfrastructureAzureVmss{}), cac.InfrastructureTypes.Custom: reflect.TypeOf(cac.InfrastructureCustom{}), cac.InfrastructureTypes.DataCenterSSH: reflect.TypeOf(cac.InfrastructureDataCenterSSH{}), cac.InfrastructureTypes.DataCenterWinRM: reflect.TypeOf(cac.InfrastructureDataCenterWinRM{}), cac.InfrastructureTypes.KubernetesDirect: reflect.TypeOf(cac.InfrastructureKubernetesDirect{}), cac.InfrastructureTypes.KubernetesGcp: reflect.TypeOf(cac.InfrastructureKubernetesGcp{}), cac.InfrastructureTypes.Pcf: reflect.TypeOf(cac.InfrastructureTanzu{}), }
Functions ¶
func FindConfigAsCodeItemByPath ¶
func FindConfigAsCodeItemByPath(rootItem *cac.ConfigAsCodeItem, path cac.YamlPath) *cac.ConfigAsCodeItem
func FindConfigAsCodeItemByUUID ¶
func FindConfigAsCodeItemByUUID(rootItem *cac.ConfigAsCodeItem, uuid string) *cac.ConfigAsCodeItem
Types ¶
type ApiClient ¶
type ApiClient struct { Configuration *Config ApplicationClient *ApplicationClient CloudProviderClient *CloudProviderClient ConfigAsCodeClient *ConfigAsCodeClient ConnectorClient *ConnectorClient DelegateClient *DelegateClient ExecutionClient *ExecutionClient Log *log.Logger SecretClient *SecretClient ServiceClient *ServiceClient SSOClient *SSOClient UserClient *UserClient TagClient *TagClient TriggerClient *TriggerClient ApprovalClient *ApprovalClient // contains filtered or unexported fields }
func (*ApiClient) ExecuteGraphQLQuery ¶
func (c *ApiClient) ExecuteGraphQLQuery(query *GraphQLQuery, responseObj interface{}) error
Executes a GraphQL query
func (*ApiClient) NewAuthorizedDeleteRequest ¶
func (client *ApiClient) NewAuthorizedDeleteRequest(path string) (*retryablehttp.Request, error)
func (*ApiClient) NewAuthorizedGetRequest ¶
func (client *ApiClient) NewAuthorizedGetRequest(path string) (*retryablehttp.Request, error)
func (*ApiClient) NewAuthorizedPostRequest ¶
func (client *ApiClient) NewAuthorizedPostRequest(path string, rawBody interface{}) (*retryablehttp.Request, error)
func (*ApiClient) NewAuthorizedRequest ¶
func (*ApiClient) NewGraphQLRequest ¶
func (client *ApiClient) NewGraphQLRequest(query *GraphQLQuery) (*retryablehttp.Request, error)
Create new request for making GraphQL Api calls
type ApplicationClient ¶
type ApplicationClient struct {
ApiClient *ApiClient
}
Helper type for accessing all application related crud methods
func (*ApplicationClient) CreateApplication ¶
func (ac *ApplicationClient) CreateApplication(input *graphql.CreateApplicationInput) (*graphql.Application, error)
func (*ApplicationClient) DeleteApplication ¶
func (ac *ApplicationClient) DeleteApplication(id string) error
func (*ApplicationClient) GetApplicationById ¶
func (ac *ApplicationClient) GetApplicationById(id string) (*graphql.Application, error)
CRUD
func (*ApplicationClient) GetApplicationByName ¶
func (ac *ApplicationClient) GetApplicationByName(name string) (*graphql.Application, error)
func (*ApplicationClient) ListApplications ¶
func (ac *ApplicationClient) ListApplications(limit int, offset int) ([]*graphql.Application, *graphql.PageInfo, error)
func (*ApplicationClient) RemoveGitSyncConfig ¶
func (c *ApplicationClient) RemoveGitSyncConfig(applicationId string) error
func (*ApplicationClient) UpdateApplication ¶
func (ac *ApplicationClient) UpdateApplication(input *graphql.UpdateApplicationInput) (*graphql.Application, error)
func (*ApplicationClient) UpdateGitSyncConfig ¶
func (c *ApplicationClient) UpdateGitSyncConfig(config *graphql.UpdateApplicationGitSyncConfigInput) (*graphql.GitSyncConfig, error)
type ApprovalClient ¶ added in v0.1.33
type ApprovalClient struct {
ApiClient *ApiClient
}
Helper type for accessing all application related crud methods
func (*ApprovalClient) ApproveOrRejectApprovals ¶ added in v0.1.33
func (ac *ApprovalClient) ApproveOrRejectApprovals(input *graphql.ApproveOrRejectApprovalsInput) (*graphql.ApproveOrRejectApprovals, error)
func (*ApprovalClient) GetApprovalDetails ¶ added in v0.1.33
func (ac *ApprovalClient) GetApprovalDetails(applicationId string, executionId string) (*graphql.ApprovalDetailsPayload, error)
CRUD
type CloudProviderClient ¶
type CloudProviderClient struct {
ApiClient *ApiClient
}
func (*CloudProviderClient) CreateAwsCloudProvider ¶
func (c *CloudProviderClient) CreateAwsCloudProvider(provider *graphql.AwsCloudProvider) (*graphql.AwsCloudProvider, error)
func (*CloudProviderClient) CreateAzureCloudProvider ¶
func (c *CloudProviderClient) CreateAzureCloudProvider(provider *graphql.AzureCloudProvider) (*graphql.AzureCloudProvider, error)
func (*CloudProviderClient) CreateGcpCloudProvider ¶
func (c *CloudProviderClient) CreateGcpCloudProvider(provider *graphql.GcpCloudProvider) (*graphql.GcpCloudProvider, error)
func (*CloudProviderClient) CreateKubernetesCloudProvider ¶
func (c *CloudProviderClient) CreateKubernetesCloudProvider(provider *graphql.KubernetesCloudProvider) (*graphql.KubernetesCloudProvider, error)
func (*CloudProviderClient) CreatePcfCloudProvider ¶
func (c *CloudProviderClient) CreatePcfCloudProvider(provider *graphql.PcfCloudProvider) (*graphql.PcfCloudProvider, error)
func (*CloudProviderClient) CreatePhysicalDataCenterCloudProvider ¶
func (c *CloudProviderClient) CreatePhysicalDataCenterCloudProvider(provider *graphql.PhysicalDataCenterCloudProvider) (*graphql.PhysicalDataCenterCloudProvider, error)
func (*CloudProviderClient) CreateSpotInstCloudProvider ¶
func (c *CloudProviderClient) CreateSpotInstCloudProvider(provider *graphql.SpotInstCloudProvider) (*graphql.SpotInstCloudProvider, error)
func (*CloudProviderClient) DeleteCloudProvider ¶
func (c *CloudProviderClient) DeleteCloudProvider(id string) error
func (*CloudProviderClient) GetAwsCloudProviderById ¶
func (c *CloudProviderClient) GetAwsCloudProviderById(Id string) (*graphql.AwsCloudProvider, error)
func (*CloudProviderClient) GetAwsCloudProviderByName ¶
func (c *CloudProviderClient) GetAwsCloudProviderByName(name string) (*graphql.AwsCloudProvider, error)
func (*CloudProviderClient) GetAzureCloudProviderById ¶
func (c *CloudProviderClient) GetAzureCloudProviderById(Id string) (*graphql.AzureCloudProvider, error)
func (*CloudProviderClient) GetAzureCloudProviderByName ¶
func (c *CloudProviderClient) GetAzureCloudProviderByName(name string) (*graphql.AzureCloudProvider, error)
func (*CloudProviderClient) GetGcpCloudProviderById ¶
func (c *CloudProviderClient) GetGcpCloudProviderById(id string) (*graphql.GcpCloudProvider, error)
func (*CloudProviderClient) GetGcpCloudProviderByName ¶
func (c *CloudProviderClient) GetGcpCloudProviderByName(name string) (*graphql.GcpCloudProvider, error)
func (*CloudProviderClient) GetKubernetesCloudProviderById ¶
func (c *CloudProviderClient) GetKubernetesCloudProviderById(id string) (*graphql.KubernetesCloudProvider, error)
func (*CloudProviderClient) GetKubernetesCloudProviderByName ¶
func (c *CloudProviderClient) GetKubernetesCloudProviderByName(name string) (*graphql.KubernetesCloudProvider, error)
func (*CloudProviderClient) GetPcfCloudProviderById ¶
func (c *CloudProviderClient) GetPcfCloudProviderById(id string) (*graphql.PcfCloudProvider, error)
func (*CloudProviderClient) GetPcfCloudProviderByName ¶
func (c *CloudProviderClient) GetPcfCloudProviderByName(name string) (*graphql.PcfCloudProvider, error)
func (*CloudProviderClient) GetPhysicalDataCEnterCloudProviderById ¶
func (c *CloudProviderClient) GetPhysicalDataCEnterCloudProviderById(id string) (*graphql.PhysicalDataCenterCloudProvider, error)
func (*CloudProviderClient) GetPhysicalDatacenterCloudProviderByName ¶
func (c *CloudProviderClient) GetPhysicalDatacenterCloudProviderByName(name string) (*graphql.PhysicalDataCenterCloudProvider, error)
func (*CloudProviderClient) GetSpotInstCloudProviderById ¶
func (c *CloudProviderClient) GetSpotInstCloudProviderById(id string) (*graphql.SpotInstCloudProvider, error)
func (*CloudProviderClient) GetSpotInstCloudProviderByName ¶
func (c *CloudProviderClient) GetSpotInstCloudProviderByName(name string) (*graphql.SpotInstCloudProvider, error)
func (*CloudProviderClient) ListCloudProviders ¶
func (ac *CloudProviderClient) ListCloudProviders(limit int, offset int) ([]*graphql.CloudProvider, *graphql.PageInfo, error)
func (*CloudProviderClient) UpdateAwsCloudProvider ¶
func (c *CloudProviderClient) UpdateAwsCloudProvider(id string, cp *graphql.UpdateAwsCloudProviderInput) (*graphql.AwsCloudProvider, error)
func (*CloudProviderClient) UpdateAzureCloudProvider ¶
func (c *CloudProviderClient) UpdateAzureCloudProvider(id string, cp *graphql.UpdateAzureCloudProviderInput) (*graphql.AzureCloudProvider, error)
func (*CloudProviderClient) UpdateGcpCloudProvider ¶
func (c *CloudProviderClient) UpdateGcpCloudProvider(id string, cp *graphql.UpdateGcpCloudProviderInput) (*graphql.GcpCloudProvider, error)
func (*CloudProviderClient) UpdateKubernetesCloudProvider ¶
func (c *CloudProviderClient) UpdateKubernetesCloudProvider(id string, cp *graphql.UpdateKubernetesCloudProviderInput) (*graphql.KubernetesCloudProvider, error)
func (*CloudProviderClient) UpdatePcfCloudProvider ¶
func (c *CloudProviderClient) UpdatePcfCloudProvider(id string, cp *graphql.UpdatePcfCloudProviderInput) (*graphql.PcfCloudProvider, error)
func (*CloudProviderClient) UpdatePhysicalDataCenterCloudProvider ¶
func (c *CloudProviderClient) UpdatePhysicalDataCenterCloudProvider(id string, cp *graphql.UpdatePhysicalDataCenterCloudProviderInput) (*graphql.PhysicalDataCenterCloudProvider, error)
func (*CloudProviderClient) UpdateSpotInstCloudProvider ¶
func (c *CloudProviderClient) UpdateSpotInstCloudProvider(id string, cp *graphql.UpdateSpotInstCloudProviderInst) (*graphql.SpotInstCloudProvider, error)
type Config ¶
type Config struct { AccountId string APIKey string Endpoint string HTTPClient *retryablehttp.Client UserAgent string DefaultHeaders map[string]string DebugLogging bool Logger *log.Logger }
func DefaultConfig ¶ added in v0.1.15
func DefaultConfig() *Config
func (*Config) NewInvalidConfigError ¶
func (c *Config) NewInvalidConfigError(field string, err error) InvalidConfigError
type ConfigAsCodeClient ¶
type ConfigAsCodeClient struct {
ApiClient *ApiClient
}
func (*ConfigAsCodeClient) DeleteCloudProvider ¶ added in v0.1.17
func (c *ConfigAsCodeClient) DeleteCloudProvider(name string) error
func (*ConfigAsCodeClient) DeleteEntity ¶
func (c *ConfigAsCodeClient) DeleteEntity(filePath cac.YamlPath) error
func (*ConfigAsCodeClient) DeleteEntityV2 ¶ added in v0.1.17
func (c *ConfigAsCodeClient) DeleteEntityV2(filePath cac.YamlPath, yamlContent string) error
func (*ConfigAsCodeClient) DeleteEnvironment ¶
func (c *ConfigAsCodeClient) DeleteEnvironment(appName string, envName string) error
func (*ConfigAsCodeClient) DeleteInfraDefinition ¶
func (c *ConfigAsCodeClient) DeleteInfraDefinition(applicationId string, environmentId string, infraId string) error
func (*ConfigAsCodeClient) DeleteService ¶
func (c *ConfigAsCodeClient) DeleteService(applicationId string, serviceId string) error
func (*ConfigAsCodeClient) ExecuteRequest ¶
func (c *ConfigAsCodeClient) ExecuteRequest(request *retryablehttp.Request) (*cac.ConfigAsCodeItem, error)
func (*ConfigAsCodeClient) FindObjectById ¶
func (c *ConfigAsCodeClient) FindObjectById(applicationId string, objectId string, out interface{}) error
func (*ConfigAsCodeClient) FindObjectByPath ¶
func (c *ConfigAsCodeClient) FindObjectByPath(applicationId string, filePath cac.YamlPath, obj interface{}) error
This function is used when the Id of the object is unknown and we need to look it up. Typically this is needed just after an Upsert command. The Upsert API unfortunately does not return the Id of the newly created object.
func (*ConfigAsCodeClient) FindRootAccountObjectByName ¶
func (c *ConfigAsCodeClient) FindRootAccountObjectByName(name string) (*cac.ConfigAsCodeItem, error)
func (*ConfigAsCodeClient) FindYamlByPath ¶
func (c *ConfigAsCodeClient) FindYamlByPath(applicationId string, filePath cac.YamlPath) (*cac.YamlEntity, error)
func (*ConfigAsCodeClient) GetApplicationById ¶
func (c *ConfigAsCodeClient) GetApplicationById(applicationId string) (*cac.Application, error)
func (*ConfigAsCodeClient) GetApplicationByName ¶
func (c *ConfigAsCodeClient) GetApplicationByName(name string) (*cac.Application, error)
func (*ConfigAsCodeClient) GetCloudProviderById ¶
func (c *ConfigAsCodeClient) GetCloudProviderById(providerId string, out interface{}) error
func (*ConfigAsCodeClient) GetCloudProviderByName ¶
func (c *ConfigAsCodeClient) GetCloudProviderByName(name string, obj interface{}) error
func (*ConfigAsCodeClient) GetDirectoryItemContent ¶
func (c *ConfigAsCodeClient) GetDirectoryItemContent(restName string, uuid string, applicationId string) (*cac.ConfigAsCodeItem, error)
func (*ConfigAsCodeClient) GetDirectoryTree ¶
func (c *ConfigAsCodeClient) GetDirectoryTree(applicationId string) (*cac.ConfigAsCodeItem, error)
func (*ConfigAsCodeClient) GetEnvironmentById ¶
func (c *ConfigAsCodeClient) GetEnvironmentById(applicationId string, environmentId string) (*cac.Environment, error)
func (*ConfigAsCodeClient) GetEnvironmentByName ¶
func (c *ConfigAsCodeClient) GetEnvironmentByName(applicationId string, environmentName string) (*cac.Environment, error)
func (*ConfigAsCodeClient) GetInfraDefinitionById ¶
func (c *ConfigAsCodeClient) GetInfraDefinitionById(appId string, envId string, infraId string) (*cac.InfrastructureDefinition, error)
func (*ConfigAsCodeClient) GetInfraDefinitionByName ¶
func (c *ConfigAsCodeClient) GetInfraDefinitionByName(appId string, envId string, infraName string) (*cac.InfrastructureDefinition, error)
func (*ConfigAsCodeClient) GetServiceById ¶
func (*ConfigAsCodeClient) GetTemplateLibraryRootPathName ¶
func (c *ConfigAsCodeClient) GetTemplateLibraryRootPathName() (cac.YamlPath, error)
func (*ConfigAsCodeClient) GetYamlDetails ¶
func (c *ConfigAsCodeClient) GetYamlDetails(item *cac.ConfigAsCodeItem, filePath cac.YamlPath, applicationId string) (*cac.YamlEntity, error)
func (*ConfigAsCodeClient) ParseObject ¶
func (c *ConfigAsCodeClient) ParseObject(item *cac.ConfigAsCodeItem, filePath cac.YamlPath, applicationId string, obj interface{}) error
func (*ConfigAsCodeClient) UpsertAwsCloudProvider ¶
func (c *ConfigAsCodeClient) UpsertAwsCloudProvider(input *cac.AwsCloudProvider) (*cac.AwsCloudProvider, error)
func (*ConfigAsCodeClient) UpsertAzureCloudProvider ¶
func (c *ConfigAsCodeClient) UpsertAzureCloudProvider(input *cac.AzureCloudProvider) (*cac.AzureCloudProvider, error)
func (*ConfigAsCodeClient) UpsertCloudProvider ¶
func (c *ConfigAsCodeClient) UpsertCloudProvider(input interface{}, output interface{}) error
func (*ConfigAsCodeClient) UpsertEnvironment ¶
func (c *ConfigAsCodeClient) UpsertEnvironment(input *cac.Environment) (*cac.Environment, error)
func (*ConfigAsCodeClient) UpsertGcpCloudProvider ¶
func (c *ConfigAsCodeClient) UpsertGcpCloudProvider(input *cac.GcpCloudProvider) (*cac.GcpCloudProvider, error)
func (*ConfigAsCodeClient) UpsertInfraDefinition ¶
func (c *ConfigAsCodeClient) UpsertInfraDefinition(input *cac.InfrastructureDefinition) (*cac.InfrastructureDefinition, error)
func (*ConfigAsCodeClient) UpsertKubernetesCloudProvider ¶
func (c *ConfigAsCodeClient) UpsertKubernetesCloudProvider(input *cac.KubernetesCloudProvider) (*cac.KubernetesCloudProvider, error)
func (*ConfigAsCodeClient) UpsertObject ¶
func (c *ConfigAsCodeClient) UpsertObject(input interface{}, filePath cac.YamlPath, responseObj interface{}) error
func (*ConfigAsCodeClient) UpsertPcfCloudProvider ¶
func (c *ConfigAsCodeClient) UpsertPcfCloudProvider(input *cac.PcfCloudProvider) (*cac.PcfCloudProvider, error)
func (*ConfigAsCodeClient) UpsertPhysicalDataCenterCloudProvider ¶
func (c *ConfigAsCodeClient) UpsertPhysicalDataCenterCloudProvider(input *cac.PhysicalDatacenterCloudProvider) (*cac.PhysicalDatacenterCloudProvider, error)
func (*ConfigAsCodeClient) UpsertRawYaml ¶
func (c *ConfigAsCodeClient) UpsertRawYaml(filePath cac.YamlPath, yaml []byte) (*cac.ConfigAsCodeItem, error)
func (*ConfigAsCodeClient) UpsertService ¶
func (*ConfigAsCodeClient) UpsertSpotInstCloudProvider ¶
func (c *ConfigAsCodeClient) UpsertSpotInstCloudProvider(input *cac.SpotInstCloudProvider) (*cac.SpotInstCloudProvider, error)
func (*ConfigAsCodeClient) UpsertYamlEntity ¶
func (c *ConfigAsCodeClient) UpsertYamlEntity(filePath cac.YamlPath, entity interface{}) (*cac.ConfigAsCodeItem, error)
type ConnectorClient ¶
type ConnectorClient struct {
ApiClient *ApiClient
}
func (*ConnectorClient) CreateGitConnector ¶
func (c *ConnectorClient) CreateGitConnector(connector *graphql.GitConnectorInput) (*graphql.GitConnector, error)
func (*ConnectorClient) DeleteConnector ¶
func (c *ConnectorClient) DeleteConnector(id string) error
func (*ConnectorClient) GetGitConnectorById ¶
func (c *ConnectorClient) GetGitConnectorById(id string) (*graphql.GitConnector, error)
func (*ConnectorClient) GetGitConnectorByName ¶
func (c *ConnectorClient) GetGitConnectorByName(name string) (*graphql.GitConnector, error)
func (*ConnectorClient) ListGitConnectors ¶
func (c *ConnectorClient) ListGitConnectors(limit int, offset int) ([]*graphql.GitConnector, *graphql.PageInfo, error)
func (*ConnectorClient) UpdateGitConnector ¶
func (c *ConnectorClient) UpdateGitConnector(id string, connector *graphql.GitConnectorInput) (*graphql.GitConnector, error)
type DelegateClient ¶
type DelegateClient struct {
ApiClient *ApiClient
}
Helper type for accessing all delegate related crud methods
func (*DelegateClient) DeleteDelegate ¶
func (c *DelegateClient) DeleteDelegate(delegateId string) error
func (*DelegateClient) GetDelegateByHostName ¶
func (c *DelegateClient) GetDelegateByHostName(hostName string) (*graphql.Delegate, error)
func (*DelegateClient) GetDelegateById ¶
func (c *DelegateClient) GetDelegateById(id string) (*graphql.Delegate, error)
func (*DelegateClient) GetDelegateByName ¶
func (c *DelegateClient) GetDelegateByName(name string) (*graphql.Delegate, error)
func (*DelegateClient) GetDelegatesByName ¶
func (c *DelegateClient) GetDelegatesByName(name string) ([]*graphql.Delegate, error)
func (*DelegateClient) ListDelegates ¶
func (*DelegateClient) ListDelegatesWithFilters ¶
func (c *DelegateClient) ListDelegatesWithFilters(limit int, offset int, name string, status graphql.DelegateStatus, delegateType graphql.DelegateType) ([]*graphql.Delegate, *graphql.PageInfo, error)
func (*DelegateClient) UpdateDelegateApprovalStatus ¶
func (c *DelegateClient) UpdateDelegateApprovalStatus(input *graphql.DelegateApprovalRejectInput) (*graphql.Delegate, error)
type ExecutionClient ¶ added in v0.1.14
type ExecutionClient struct {
ApiClient *ApiClient
}
func (*ExecutionClient) AbortWorkflowOrPipelineById ¶ added in v0.2.27
func (c *ExecutionClient) AbortWorkflowOrPipelineById(id, appId string) (*executions.Response, error)
func (*ExecutionClient) ExecuteRequest ¶ added in v0.2.27
func (c *ExecutionClient) ExecuteRequest(request *retryablehttp.Request) (*executions.Response, error)
func (*ExecutionClient) ExportExecutions ¶ added in v0.2.10
func (c *ExecutionClient) ExportExecutions(input *graphql.ExportExecutionsInput) (*graphql.ExportExecutionsPayload, error)
func (*ExecutionClient) GetPipelineExecutionById ¶ added in v0.1.14
func (c *ExecutionClient) GetPipelineExecutionById(id string) (*graphql.PipelineExecution, error)
func (*ExecutionClient) GetWorkflowExecutionById ¶ added in v0.1.14
func (c *ExecutionClient) GetWorkflowExecutionById(id string) (*graphql.WorkflowExecution, error)
func (*ExecutionClient) StartExecution ¶ added in v0.1.14
func (c *ExecutionClient) StartExecution(input *graphql.StartExecutionInput) (*graphql.StartExecutionPayload, error)
type GraphQLError ¶
type GraphQLError struct { Message string `json:"message"` Locations []struct { Line int `json:"line"` Column int `json:"column"` Path []string `json:"path"` } `json:"column"` }
func (*GraphQLError) ToError ¶
func (m *GraphQLError) ToError() error
type GraphQLQuery ¶
type GraphQLResponseMessage ¶
type GraphQLResponseMessage struct { Code string `json:"code"` Level string `json:"level"` Message string `json:"message"` Exception string `json:"exception"` FailureTypes []string `json:"failureTypes"` }
func (*GraphQLResponseMessage) ToError ¶
func (m *GraphQLResponseMessage) ToError() error
type GraphQLStandardResponse ¶
type GraphQLStandardResponse struct { Data *json.RawMessage `json:"data"` Metadata interface{} `json:"metadata"` Resource string `json:"resource"` ResponseMessages []GraphQLResponseMessage `json:"responseMessages"` Errors []GraphQLError `json:"errors"` }
type InvalidConfigError ¶
func (InvalidConfigError) Error ¶
func (e InvalidConfigError) Error() string
func (InvalidConfigError) Unwrap ¶
func (e InvalidConfigError) Unwrap() error
type SSOClient ¶
type SSOClient struct {
ApiClient *ApiClient
}
func (*SSOClient) GetSSOProviderById ¶
func (c *SSOClient) GetSSOProviderById(id string) (*graphql.SSOProvider, error)
func (*SSOClient) GetSSOProviderByName ¶
func (c *SSOClient) GetSSOProviderByName(name string) (*graphql.SSOProvider, error)
func (*SSOClient) ListSSOProviders ¶
type SecretClient ¶
type SecretClient struct {
ApiClient *ApiClient
}
func (*SecretClient) CreateEncryptedText ¶
func (c *SecretClient) CreateEncryptedText(input *graphql.CreateSecretInput) (*graphql.EncryptedText, error)
func (*SecretClient) CreateSSHCredential ¶
func (c *SecretClient) CreateSSHCredential(sshInput *graphql.SSHCredential) (*graphql.SSHCredential, error)
func (*SecretClient) DeleteSecret ¶
func (c *SecretClient) DeleteSecret(secretId string, secretType graphql.SecretType) error
func (*SecretClient) DeleteSecretObj ¶
func (c *SecretClient) DeleteSecretObj(secret *graphql.Secret) error
func (*SecretClient) GetDefaultSecretManagerId ¶
func (c *SecretClient) GetDefaultSecretManagerId() (string, error)
Currently there is no way to find the Id of the default secret manager directly through the API. Instead, this method creates a temporary secret without specifying which secret manager to use. Once it's created we can then read back the id of the secret manager that is automatically assigned.
func (*SecretClient) GetEncryptedFileById ¶
func (c *SecretClient) GetEncryptedFileById(id string) (*graphql.EncryptedFile, error)
func (*SecretClient) GetEncryptedFileByName ¶
func (c *SecretClient) GetEncryptedFileByName(name string) (*graphql.EncryptedFile, error)
func (*SecretClient) GetEncryptedTextById ¶
func (c *SecretClient) GetEncryptedTextById(id string) (*graphql.EncryptedText, error)
func (*SecretClient) GetEncryptedTextByName ¶
func (c *SecretClient) GetEncryptedTextByName(name string) (*graphql.EncryptedText, error)
func (*SecretClient) GetSSHCredentialById ¶
func (c *SecretClient) GetSSHCredentialById(id string) (*graphql.SSHCredential, error)
func (*SecretClient) GetSSHCredentialByName ¶
func (c *SecretClient) GetSSHCredentialByName(name string) (*graphql.SSHCredential, error)
func (*SecretClient) GetSecretManagerById ¶
func (ac *SecretClient) GetSecretManagerById(id string) (*graphql.SecretManager, error)
CRUD
func (*SecretClient) GetSecretManagerByName ¶
func (ac *SecretClient) GetSecretManagerByName(name string) (*graphql.SecretManager, error)
func (*SecretClient) GetWinRMCredentialById ¶
func (c *SecretClient) GetWinRMCredentialById(id string) (*graphql.WinRMCredential, error)
func (*SecretClient) GetWinRMCredentialByName ¶
func (c *SecretClient) GetWinRMCredentialByName(name string) (*graphql.WinRMCredential, error)
func (*SecretClient) ListEncryptedTextSecrets ¶
func (c *SecretClient) ListEncryptedTextSecrets(limit int, offset int) ([]*unpublished.EncryptedText, *graphql.PageInfo, error)
WARNING: This method requires the use of a bearer token which isn't supported in most scenarios.
func (*SecretClient) ListSSHCredentials ¶
func (c *SecretClient) ListSSHCredentials() ([]*unpublished.Credential, error)
WARNING: This method requires the use of a bearer token which isn't supported in most scenarios.
func (*SecretClient) ListSecretManagers ¶
func (c *SecretClient) ListSecretManagers() ([]*unpublished.SecretManager, error)
WARNING: This method requires the use of a bearer token which isn't supported in most scenarios.
func (*SecretClient) ListWinRMCredentials ¶
func (c *SecretClient) ListWinRMCredentials() ([]*unpublished.Credential, error)
func (*SecretClient) UpdateEncryptedText ¶
func (c *SecretClient) UpdateEncryptedText(input *graphql.UpdateSecretInput) (*graphql.EncryptedText, error)
func (*SecretClient) UpdateSSHCredential ¶
func (c *SecretClient) UpdateSSHCredential(id string, cred *graphql.SSHCredential) (*graphql.SSHCredential, error)
type ServiceClient ¶ added in v0.1.20
type ServiceClient struct {
ApiClient *ApiClient
}
func (*ServiceClient) GetServiceById ¶ added in v0.1.20
func (ac *ServiceClient) GetServiceById(id string) (*graphql.Service, error)
func (*ServiceClient) GetServiceByName ¶ added in v0.1.20
func (*ServiceClient) ListServices ¶ added in v0.1.20
func (ac *ServiceClient) ListServices(limit int, offset int, filters []*graphql.ServiceFilter) ([]*graphql.Service, *graphql.PageInfo, error)
type TagClient ¶ added in v0.1.28
type TagClient struct {
ApiClient *ApiClient
}
func (*TagClient) AttachTag ¶ added in v0.1.28
func (c *TagClient) AttachTag(input *graphql.AttachTagInput) (*graphql.AttachTagPayload, error)
type TriggerClient ¶ added in v0.1.29
type TriggerClient struct {
ApiClient *ApiClient
}
func (*TriggerClient) GetTriggerById ¶ added in v0.2.26
func (c *TriggerClient) GetTriggerById(triggerId string) (*graphql.Trigger, error)
func (*TriggerClient) GetTriggerByName ¶ added in v0.2.26
func (*TriggerClient) GetWebhookUrl ¶ added in v0.1.29
func (c *TriggerClient) GetWebhookUrl(appId string, triggerName string) (*graphql.WebhookUrl, error)
type UserClient ¶
type UserClient struct {
ApiClient *ApiClient
}
func (*UserClient) AddUserToGroup ¶
func (c *UserClient) AddUserToGroup(userId string, groupId string) (bool, error)
func (*UserClient) CreateUser ¶
func (c *UserClient) CreateUser(input *graphql.CreateUserInput) (*graphql.User, error)
func (*UserClient) CreateUserGroup ¶
func (*UserClient) DeleteUser ¶
func (c *UserClient) DeleteUser(id string) error
func (*UserClient) DeleteUserGroup ¶
func (c *UserClient) DeleteUserGroup(id string) error
func (*UserClient) GetUserByEmail ¶
func (c *UserClient) GetUserByEmail(email string) (*graphql.User, error)
func (*UserClient) GetUserById ¶
func (c *UserClient) GetUserById(id string) (*graphql.User, error)
func (*UserClient) GetUserByName ¶
func (c *UserClient) GetUserByName(name string) (*graphql.User, error)
func (*UserClient) GetUserGroupById ¶
func (c *UserClient) GetUserGroupById(id string) (*graphql.UserGroup, error)
func (*UserClient) GetUserGroupByName ¶
func (c *UserClient) GetUserGroupByName(name string) (*graphql.UserGroup, error)
func (*UserClient) IsUserInGroup ¶
func (c *UserClient) IsUserInGroup(userId string, groupId string) (bool, error)
func (*UserClient) ListGroupMembershipByUserId ¶
func (*UserClient) ListUserGroups ¶
func (*UserClient) RemoveUserFromGroup ¶
func (c *UserClient) RemoveUserFromGroup(userId string, groupId string) (bool, error)
func (*UserClient) UpdateUser ¶
func (c *UserClient) UpdateUser(input *graphql.UpdateUserInput) (*graphql.User, error)
func (*UserClient) UpdateUserGroup ¶
Source Files ¶
- application.go
- approval.go
- aws_cloudprovider.go
- azure_cloudprovider.go
- cac.go
- cac_application.go
- cac_cloudprovider.go
- cac_environment.go
- cac_infra_definition.go
- cac_service.go
- client.go
- cloudprovider.go
- connectors.go
- delegate.go
- encrypted_file.go
- encrypted_text.go
- errors.go
- execution.go
- gcp_cloudprovider.go
- gitsync_config.go
- graphql.go
- graphql_types.go
- kubernetes_cloudprovider.go
- pcf_cloudprovider.go
- physicaldatacenter_cloudprovider.go
- secret_manager.go
- secrets.go
- service.go
- spotinst_cloudprovider.go
- ssh_credential.go
- sso_provider.go
- tags.go
- triggers.go
- user.go
- user_group.go
- winrm_credential.go