Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindFlags ¶
func BindFlags(l *syncerconfig.SyncerLeaderElectionConfiguration, fs *pflag.FlagSet)
BindFlags binds the LeaderElectionConfiguration struct fields to a flagset
Types ¶
type ResourceSyncerOptions ¶
type ResourceSyncerOptions struct { // The syncer configuration. ComponentConfig syncerconfig.SyncerConfiguration MetaClusterAddress string // MetaClusterClientConnection specifies the kubeconfig file and client connection // settings for the proxy server to use when communicating with the meta cluster apiserver. MetaClusterClientConnection componentbaseconfig.ClientConnectionConfiguration DeployOnMetaCluster bool SuperClusterAddress string SyncerName string Address string Port string CertFile string KeyFile string DNSOptions map[string]string }
ResourceSyncerOptions is the main context object for the resource syncer.
func NewResourceSyncerOptions ¶
func NewResourceSyncerOptions() (*ResourceSyncerOptions, error)
NewResourceSyncerOptions creates a new resource syncer with a default config.
func (*ResourceSyncerOptions) Config ¶
func (o *ResourceSyncerOptions) Config() (*syncerappconfig.Config, error)
Config return a syncer config object
func (*ResourceSyncerOptions) Flags ¶
func (o *ResourceSyncerOptions) Flags() cliflag.NamedFlagSets
Click to show internal directories.
Click to hide internal directories.