Documentation ¶
Index ¶
- type LinkHandlerKube
- func (l *LinkHandlerKube) Create(secret *corev1.Secret, name string, cost int) error
- func (l *LinkHandlerKube) Delete(name string) error
- func (l *LinkHandlerKube) Detail(link types.LinkStatus) (map[string]string, error)
- func (l *LinkHandlerKube) List() ([]*corev1.Secret, error)
- func (l *LinkHandlerKube) RemoteLinks(ctx context.Context) ([]*network.RemoteLinkInfo, error)
- func (l *LinkHandlerKube) Status(name string) (types.LinkStatus, error)
- func (l *LinkHandlerKube) StatusAll() ([]types.LinkStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkHandlerKube ¶
type LinkHandlerKube struct {
// contains filtered or unexported fields
}
func NewLinkHandlerKube ¶
func NewLinkHandlerKube(namespace string, site *types.SiteConfig, routerConfig *qdr.RouterConfig, cli kubernetes.Interface, restConfig *rest.Config) *LinkHandlerKube
func (*LinkHandlerKube) Delete ¶
func (l *LinkHandlerKube) Delete(name string) error
func (*LinkHandlerKube) Detail ¶
func (l *LinkHandlerKube) Detail(link types.LinkStatus) (map[string]string, error)
func (*LinkHandlerKube) RemoteLinks ¶
func (l *LinkHandlerKube) RemoteLinks(ctx context.Context) ([]*network.RemoteLinkInfo, error)
func (*LinkHandlerKube) Status ¶
func (l *LinkHandlerKube) Status(name string) (types.LinkStatus, error)
func (*LinkHandlerKube) StatusAll ¶
func (l *LinkHandlerKube) StatusAll() ([]types.LinkStatus, error)
Click to show internal directories.
Click to hide internal directories.