cd

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultGraphQLApiUrl = "/api/graphql"

Variables

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 NewClient

func NewClient(cfg *Config) (*ApiClient, error)

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 (c *ApiClient) NewAuthorizedRequest(path string, method string, rawBody interface{}) (*retryablehttp.Request, error)

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

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 (*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 (*CloudProviderClient) UpdateAzureCloudProvider

func (*CloudProviderClient) UpdateGcpCloudProvider

func (*CloudProviderClient) UpdateKubernetesCloudProvider

func (*CloudProviderClient) UpdatePcfCloudProvider

func (*CloudProviderClient) UpdateSpotInstCloudProvider

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 (c *ConfigAsCodeClient) GetServiceById(applicationId string, serviceId string) (*cac.Service, error)

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 (*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 (c *ConfigAsCodeClient) UpsertService(input *cac.Service) (*cac.Service, error)

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 (c *DelegateClient) ListDelegates(limit int, offset int) ([]*graphql.Delegate, *graphql.PageInfo, error)

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)

func (*DelegateClient) WaitForDelegate

func (c *DelegateClient) WaitForDelegate(ctx context.Context, delegateName string, timeout time.Duration) (*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 (*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

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 GraphQLQuery struct {
	Query     string                 `json:"query"`
	Variables map[string]interface{} `json:"variables"`
}

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

type InvalidConfigError struct {
	Config *Config
	Field  string
	Err    error
}

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

func (c *SSOClient) ListSSOProviders(limit int, offset int) ([]*graphql.SSOProvider, *graphql.PageInfo, error)

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 (ac *ServiceClient) GetServiceByName(appId string, name string) (*graphql.Service, error)

func (*ServiceClient) ListServices added in v0.1.20

func (ac *ServiceClient) ListServices(limit int, offset int, filters []*graphql.ServiceFilter) ([]*graphql.Service, *graphql.PageInfo, error)

func (*ServiceClient) ListServicesByApplicationId added in v0.1.20

func (ac *ServiceClient) ListServicesByApplicationId(appId string, limit int, offset int) ([]*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)

func (*TagClient) DetachTag added in v0.1.28

func (c *TagClient) DetachTag(input *graphql.DetachTagInput) 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 (c *TriggerClient) GetTriggerByName(triggerName string, appId string) (*graphql.Trigger, error)

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 (c *UserClient) CreateUserGroup(user *graphql.UserGroup) (*graphql.UserGroup, error)

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 (c *UserClient) ListGroupMembershipByUserId(userId string, limit int, offset int) ([]*graphql.UserGroup, *graphql.PageInfo, error)

func (*UserClient) ListUserGroups

func (c *UserClient) ListUserGroups(limit int, offset int) ([]*graphql.UserGroup, *graphql.PageInfo, error)

func (*UserClient) ListUsers

func (c *UserClient) ListUsers(limit int, offset int) ([]*graphql.User, *graphql.PageInfo, error)

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

func (c *UserClient) UpdateUserGroup(user *graphql.UserGroup) (*graphql.UserGroup, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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