Documentation ¶
Index ¶
- func Load(path string) (*tpb.Topology, error)
- type Manager
- func (m *Manager) ConfigPush(ctx context.Context, nodeName string, r io.Reader) error
- func (m *Manager) Create(ctx context.Context, timeout time.Duration) (rerr error)
- func (m *Manager) Delete(ctx context.Context) error
- func (m *Manager) GenerateSelfSigned(ctx context.Context, nodeName string) error
- func (m *Manager) Nodes() map[string]node.Node
- func (m *Manager) ResetCfg(ctx context.Context, nodeName string) error
- func (m *Manager) Resources(ctx context.Context) (*Resources, error)
- func (m *Manager) Show(ctx context.Context) (*cpb.ShowTopologyResponse, error)
- func (m *Manager) Watch(ctx context.Context) error
- type Option
- func WithBasePath(s string) Option
- func WithClusterConfig(r *rest.Config) Option
- func WithKubeClient(c kubernetes.Interface) Option
- func WithKubecfg(k string) Option
- func WithProgress(b bool) Option
- func WithSkipDeleteWait(b bool) Option
- func WithTopoClient(c topologyclientv1.Interface) Option
- func WithUsageReporting(b bool, project, topic string) Option
- type Resources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a topology manager for a cluster instance.
func New ¶
New creates a new Manager based on the provided topology. The cluster config passed from the WithClusterConfig option overrides the determined in-cluster config. If neither of these configurations can be used then the kubecfg passed from the WithKubecfg option will be used to determine the cluster config.
func (*Manager) ConfigPush ¶
ConfigPush will push config to the provided node. If the node does not fulfill ConfigPusher then status.Unimplemented error will be returned.
func (*Manager) GenerateSelfSigned ¶ added in v0.1.3
GenerateSelfSigned will create self signed certs on the provided node. If the node does not have cert info then it is a noop. If the node does not fulfill Certer then status.Unimplemented error will be returned.
func (*Manager) Nodes ¶
Nodes returns a map of node names to implementations in the current topology.
func (*Manager) ResetCfg ¶ added in v0.1.3
ResetCfg will reset the config for the provided node. If the node does not fulfill Resetter then status.Unimplemented error will be returned.
type Option ¶
type Option func(m *Manager)
func WithBasePath ¶
func WithClusterConfig ¶
func WithKubeClient ¶
func WithKubeClient(c kubernetes.Interface) Option
func WithKubecfg ¶ added in v0.1.3
func WithProgress ¶ added in v0.1.14
WithProgress returns a Manager Option where true causes pod progress to be displayed.
func WithSkipDeleteWait ¶ added in v0.1.15
WithSkipDeleteWait will not wait for resources to be cleaned up before Delete returns.
func WithTopoClient ¶
func WithTopoClient(c topologyclientv1.Interface) Option
func WithUsageReporting ¶ added in v0.1.14
WithUsageReporting writes anonymous usage metrics.
Directories ¶
Path | Synopsis |
---|---|
drivenets
Package drivenets implmements node definitions for nodes from the Drivenets vendor.
|
Package drivenets implmements node definitions for nodes from the Drivenets vendor. |
openconfig
Package openconfig implmements node definitions for nodes from the OpenConfig vendor.
|
Package openconfig implmements node definitions for nodes from the OpenConfig vendor. |