syncer

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductMeta

type ProductMeta struct {
	ID     string
	MetaID string
}

type ProductProvider

type ProductProvider interface {
	GetProducts() ([]nautescrd.Product, error)
	GetProductMeta(ctx context.Context, ID string) (*ProductMeta, error)
}

type ProductProviderSyncer

type ProductProviderSyncer interface {
	// Sync create|update|remove product resource by product provider
	Sync(context.Context, nautescrd.ProductProvider) error
}

type ProductSyncer

type ProductSyncer interface {
	Sync(context.Context, nautescrd.Product) error
	Delete(context.Context, nautescrd.Product) error
}

type SecretClient

type SecretClient interface {
	GetGitRepoRootToken(ctx context.Context, name string) (string, error)
	Logout()
}

Jump to

Keyboard shortcuts

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