Documentation
¶
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, req *grpcapi.CreateSecretRequest) (*grpcapi.CreateSecretResponse, error)
- func (s *Service) GetInfo(context.Context, *grpcapi.GetInfoRequest) (*grpcapi.GetInfoResponse, error)
- func (s *Service) Sync(ctx context.Context, _ *grpcapi.SyncRequest) (*grpcapi.SyncResponse, error)
- type Syncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
grpcapi.UnimplementedControllerServer
grpcapi.UnimplementedSecretsServer
// contains filtered or unexported fields
}
Service implements the cloud-secrets integration API.
func NewService ¶
NewService creates Controller and Secrets services.
func (*Service) Create ¶ added in v0.5.2
func (s *Service) Create(ctx context.Context, req *grpcapi.CreateSecretRequest) (*grpcapi.CreateSecretResponse, error)
Create validates and creates a secret without triggering synchronization.
func (*Service) GetInfo ¶
func (s *Service) GetInfo(context.Context, *grpcapi.GetInfoRequest) (*grpcapi.GetInfoResponse, error)
GetInfo returns process and provider metadata.
func (*Service) Sync ¶
func (s *Service) Sync(ctx context.Context, _ *grpcapi.SyncRequest) (*grpcapi.SyncResponse, error)
Sync triggers the normal synchronization flow on demand.
type Syncer ¶
type Syncer interface {
// Sync runs synchronization for the provided trigger.
Sync(ctx context.Context, trigger string) (cloudsecretssync.Result, error)
// LastSyncAt returns the latest successful synchronization known by the process.
LastSyncAt() (time.Time, bool)
// NextSyncAt returns the next scheduled interval synchronization time.
NextSyncAt() (time.Time, bool)
}
Syncer runs synchronization and exposes its last successful completion time.
Click to show internal directories.
Click to hide internal directories.