api

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func NewService(version string, provider contracts.Provider, syncer Syncer) *Service

NewService creates Controller and Secrets services.

func (*Service) Create added in v0.5.2

Create validates and creates a secret without triggering synchronization.

func (*Service) GetInfo

GetInfo returns process and provider metadata.

func (*Service) Sync

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.

Jump to

Keyboard shortcuts

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