Documentation ¶
Index ¶
- type EtcdServerClient
- func (c *EtcdServerClient) CreateOrUpdate(ctx context.Context, group, name string, server *etcdcluster.EtcdServer) (*etcdcluster.EtcdServer, error)
- func (c *EtcdServerClient) Delete(ctx context.Context, group, name, clusterName string) error
- func (c *EtcdServerClient) Get(ctx context.Context, group, name, clusterName string) (*[]etcdcluster.EtcdServer, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdServerClient ¶
type EtcdServerClient struct {
// contains filtered or unexported fields
}
Client structure
func NewEtcdServerClient ¶
func NewEtcdServerClient(cloudFQDN string, authorizer auth.Authorizer) (*EtcdServerClient, error)
NewClient method returns new client
func (*EtcdServerClient) CreateOrUpdate ¶
func (c *EtcdServerClient) CreateOrUpdate(ctx context.Context, group, name string, server *etcdcluster.EtcdServer) (*etcdcluster.EtcdServer, error)
CreateOrUpdate methods invokes create or update on the client
func (*EtcdServerClient) Delete ¶
func (c *EtcdServerClient) Delete(ctx context.Context, group, name, clusterName string) error
Delete methods invokes delete of the etcdcluster resource
func (*EtcdServerClient) Get ¶
func (c *EtcdServerClient) Get(ctx context.Context, group, name, clusterName string) (*[]etcdcluster.EtcdServer, error)
Get methods invokes the client Get method
type Service ¶
type Service interface { Get(context.Context, string, string, string) (*[]etcdcluster.EtcdServer, error) CreateOrUpdate(context.Context, string, string, *etcdcluster.EtcdServer) (*etcdcluster.EtcdServer, error) Delete(context.Context, string, string, string) error }
Service interface
Click to show internal directories.
Click to hide internal directories.