Documentation
¶
Index ¶
- func SetService(svc Service)
- type CreateOptions
- type DefaultService
- func (*DefaultService) Create(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) (*Environment, error)
- func (*DefaultService) CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) (*Environment, error)
- func (*DefaultService) Delete(ctx context.ServiceContext, client *clients.GQLClient, id string) error
- func (*DefaultService) Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*Environment, error)
- func (*DefaultService) GetByNameAndProjectID(ctx context.ServiceContext, client *clients.GQLClient, name, project_id string) (*Environment, error)
- func (*DefaultService) List(ctx context.ServiceContext, client *clients.GQLClient, options *ListOptions) ([]*Environment, error)
- func (*DefaultService) Sync(ctx context.ServiceContext, client *clients.GQLClient, options *SyncOptions) error
- func (*DefaultService) Update(ctx context.ServiceContext, client *clients.GQLClient, id string, ...) (*Environment, error)
- type Environment
- type ListOptions
- type Service
- type SyncOptions
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetService ¶ added in v1.1.7
func SetService(svc Service)
Types ¶
type CreateOptions ¶ added in v1.1.7
type DefaultService ¶ added in v1.1.7
type DefaultService struct{}
func (*DefaultService) Create ¶ added in v1.1.7
func (*DefaultService) Create(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) (*Environment, error)
Create a new environment
func (*DefaultService) CreateWithUserID ¶ added in v1.1.7
func (*DefaultService) CreateWithUserID(ctx context.ServiceContext, client *clients.GQLClient, options *CreateOptions) (*Environment, error)
func (*DefaultService) Delete ¶ added in v1.1.7
func (*DefaultService) Delete(ctx context.ServiceContext, client *clients.GQLClient, id string) error
Delete a environment by ID
func (*DefaultService) Get ¶ added in v1.1.7
func (*DefaultService) Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*Environment, error)
Get a environment by ID
func (*DefaultService) GetByNameAndProjectID ¶ added in v1.1.7
func (*DefaultService) GetByNameAndProjectID(ctx context.ServiceContext, client *clients.GQLClient, name, project_id string) (*Environment, error)
Get a environment by ID
func (*DefaultService) List ¶ added in v1.1.7
func (*DefaultService) List(ctx context.ServiceContext, client *clients.GQLClient, options *ListOptions) ([]*Environment, error)
List environments
func (*DefaultService) Sync ¶ added in v1.1.7
func (*DefaultService) Sync(ctx context.ServiceContext, client *clients.GQLClient, options *SyncOptions) error
This function syncs the secrets of an environment with it's connected integrations. This function assumed that the secrets being supplied are already decrypted.
func (*DefaultService) Update ¶ added in v1.1.7
func (*DefaultService) Update(ctx context.ServiceContext, client *clients.GQLClient, id string, options *UpdateOptions) (*Environment, error)
Update a environment by ID
type Environment ¶ added in v1.1.7
type ListOptions ¶ added in v1.1.7
type ListOptions struct {
ProjectID string `json:"project_id,omitempty"`
}
func (*ListOptions) MarshalJSON ¶ added in v1.1.11
func (o *ListOptions) MarshalJSON() ([]byte, error)
Custom marshaller for list options/filters.
type Service ¶ added in v1.1.7
type Service interface { Get(context.ServiceContext, *clients.GQLClient, string) (*Environment, error) GetByNameAndProjectID(context.ServiceContext, *clients.GQLClient, string, string) (*Environment, error) Create(context.ServiceContext, *clients.GQLClient, *CreateOptions) (*Environment, error) CreateWithUserID(context.ServiceContext, *clients.GQLClient, *CreateOptions) (*Environment, error) List(context.ServiceContext, *clients.GQLClient, *ListOptions) ([]*Environment, error) Update(context.ServiceContext, *clients.GQLClient, string, *UpdateOptions) (*Environment, error) Delete(context.ServiceContext, *clients.GQLClient, string) error Sync(context.ServiceContext, *clients.GQLClient, *SyncOptions) error }
func GetService ¶ added in v1.1.7
func GetService() Service
type SyncOptions ¶ added in v1.1.7
type SyncOptions struct { EnvID string EventIDs []string Pairs *keypayload.KPMap }
type UpdateOptions ¶ added in v1.1.7
type UpdateOptions struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.