Documentation ¶
Index ¶
- Constants
- func DescribeHandler(ctx context.Context, logger *zap.Logger, _ TriggeredBy, ...) error
- func Do(ctx context.Context, vlt vault.VaultSourceConfig, logger *zap.Logger, ...) (resourceIDs []string, err error)
- func GetResourceType(resourceType string) (*model.ResourceType, error)
- func GetResourceTypesMap() map[string]model.ResourceType
- func GetResources(ctx context.Context, logger *zap.Logger, resourceType string, ...) error
- func GetSingleResource(ctx context.Context, logger *zap.Logger, resourceType string, ...) error
- func ListResourceTypes() []string
- type Error
- type ResourceSender
- type TriggeredBy
Constants ¶
View Source
const ( DescribeResourceJobFailed string = "FAILED" DescribeResourceJobSucceeded string = "SUCCEEDED" )
Variables ¶
This section is empty.
Functions ¶
func DescribeHandler ¶
func DescribeHandler(ctx context.Context, logger *zap.Logger, _ TriggeredBy, input describepkg.DescribeWorkerInput) error
DescribeHandler TriggeredBy is not used for now but might be relevant in the future
func GetResourceType ¶
func GetResourceType(resourceType string) (*model.ResourceType, error)
func GetResourceTypesMap ¶
func GetResourceTypesMap() map[string]model.ResourceType
func GetResources ¶
func GetResources( ctx context.Context, logger *zap.Logger, resourceType string, triggerType enums.DescribeTriggerType, cfg configs.IntegrationCredentials, additionalParameters map[string]string, stream *model.StreamSender, ) error
func GetSingleResource ¶ added in v0.1.12
func GetSingleResource( ctx context.Context, logger *zap.Logger, resourceType string, triggerType enums.DescribeTriggerType, cfg configs.IntegrationCredentials, additionalParameters map[string]string, resourceId string, stream *model.StreamSender, ) error
func ListResourceTypes ¶
func ListResourceTypes() []string
Types ¶
type ResourceSender ¶
type ResourceSender struct {
// contains filtered or unexported fields
}
func NewResourceSender ¶
func (*ResourceSender) Connect ¶
func (s *ResourceSender) Connect() error
func (*ResourceSender) Finish ¶
func (s *ResourceSender) Finish()
func (*ResourceSender) GetResourceIDs ¶
func (s *ResourceSender) GetResourceIDs() []string
func (*ResourceSender) ResourceHandler ¶
func (s *ResourceSender) ResourceHandler()
func (*ResourceSender) Send ¶
func (s *ResourceSender) Send(resource *es.Resource)
type TriggeredBy ¶
type TriggeredBy string
const ( TriggeredByAWSLambda TriggeredBy = "aws-lambda" TriggeredByAzureFunction TriggeredBy = "azure-function" TriggeredByLocal TriggeredBy = "local" )
Click to show internal directories.
Click to hide internal directories.