project

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 71 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompressionGzip = "gzip"
	CompressionZstd = "zstd"
)

Variables

This section is empty.

Functions

func Register

func Register(rootCmd *cobra.Command)

Types

type ConfigSyncApplyer

type ConfigSyncApplyer interface {
	Push(ctx adminSdk.ApiContext, client *adminSdk.Client, config *platform.Config, operation *ConfigSyncOperation) error
	Pull(ctx adminSdk.ApiContext, client *adminSdk.Client, config *platform.Config) error
}

func NewSyncApplyers

func NewSyncApplyers(cfg *platform.Config) []ConfigSyncApplyer

type ConfigSyncOperation

type ConfigSyncOperation struct {
	Operations     Operation
	SystemSettings SystemConfig
	ThemeSettings  ThemeSettings
}

func (ConfigSyncOperation) HasChanges

func (o ConfigSyncOperation) HasChanges() bool

type EntitySync

type EntitySync struct{}

func (EntitySync) Pull

func (EntitySync) Push

func (EntitySync) Push(ctx adminSdk.ApiContext, client *adminSdk.Client, config *platform.Config, operation *ConfigSyncOperation) error

type Operation

type Operation map[string]adminSdk.SyncOperation

func (Operation) HasChanges

func (o Operation) HasChanges() bool

type SystemConfig

type SystemConfig map[*string]map[string]interface{}

func (SystemConfig) HasChanges

func (s SystemConfig) HasChanges() bool

func (SystemConfig) ToJson

func (s SystemConfig) ToJson() string

type SystemConfigSync

type SystemConfigSync struct{}

func (SystemConfigSync) Pull

func (SystemConfigSync) Push

type ThemeSettings

type ThemeSettings []ThemeSyncOperation

func (ThemeSettings) HasChanges

func (t ThemeSettings) HasChanges() bool

type ThemeSync

type ThemeSync struct{}

func (ThemeSync) Pull

func (ThemeSync) Pull(ctx adminSdk.ApiContext, client *adminSdk.Client, config *platform.Config) error

func (ThemeSync) Push

func (ThemeSync) Push(ctx adminSdk.ApiContext, client *adminSdk.Client, config *platform.Config, operation *ConfigSyncOperation) error

type ThemeSyncOperation

type ThemeSyncOperation struct {
	Id       string
	Name     string
	Settings map[string]adminSdk.ThemeConfigValue
}

Jump to

Keyboard shortcuts

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