Documentation ¶
Index ¶
- Constants
- type CatalogAttributes
- type GoogleClient
- type GooglePlugin
- func (p *GooglePlugin) ListHosts(ctx context.Context, req *pb.ListHostsRequest) (*pb.ListHostsResponse, error)
- func (p *GooglePlugin) OnCreateCatalog(_ context.Context, req *pb.OnCreateCatalogRequest) (*pb.OnCreateCatalogResponse, error)
- func (p *GooglePlugin) OnCreateSet(_ context.Context, req *pb.OnCreateSetRequest) (*pb.OnCreateSetResponse, error)
- func (p *GooglePlugin) OnDeleteCatalog(ctx context.Context, req *pb.OnDeleteCatalogRequest) (*pb.OnDeleteCatalogResponse, error)
- func (p *GooglePlugin) OnDeleteSet(ctx context.Context, req *pb.OnDeleteSetRequest) (*pb.OnDeleteSetResponse, error)
- func (p *GooglePlugin) OnUpdateCatalog(_ context.Context, req *pb.OnUpdateCatalogRequest) (*pb.OnUpdateCatalogResponse, error)
- func (p *GooglePlugin) OnUpdateSet(_ context.Context, req *pb.OnUpdateSetRequest) (*pb.OnUpdateSetResponse, error)
- type SetAttributes
Constants ¶
View Source
const ( ConstListInstancesFilter = "filter" ConstInstanceGroup = "instance_group" )
View Source
const (
NumberMaxResults = uint32(100)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogAttributes ¶
type CatalogAttributes struct {
*cred.CredentialAttributes
}
type GoogleClient ¶
type GoogleClient struct { InstancesClient *compute.InstancesClient InstanceGroupClient *compute.InstanceGroupsClient Context context.Context Project string Zone string }
type GooglePlugin ¶
type GooglePlugin struct {
pb.UnimplementedHostPluginServiceServer
}
func (*GooglePlugin) ListHosts ¶
func (p *GooglePlugin) ListHosts(ctx context.Context, req *pb.ListHostsRequest) (*pb.ListHostsResponse, error)
func (*GooglePlugin) OnCreateCatalog ¶
func (p *GooglePlugin) OnCreateCatalog(_ context.Context, req *pb.OnCreateCatalogRequest) (*pb.OnCreateCatalogResponse, error)
func (*GooglePlugin) OnCreateSet ¶
func (p *GooglePlugin) OnCreateSet(_ context.Context, req *pb.OnCreateSetRequest) (*pb.OnCreateSetResponse, error)
func (*GooglePlugin) OnDeleteCatalog ¶
func (p *GooglePlugin) OnDeleteCatalog(ctx context.Context, req *pb.OnDeleteCatalogRequest) (*pb.OnDeleteCatalogResponse, error)
func (*GooglePlugin) OnDeleteSet ¶
func (p *GooglePlugin) OnDeleteSet(ctx context.Context, req *pb.OnDeleteSetRequest) (*pb.OnDeleteSetResponse, error)
OnDeleteSet is called when a dynamic host set is deleted.
func (*GooglePlugin) OnUpdateCatalog ¶
func (p *GooglePlugin) OnUpdateCatalog(_ context.Context, req *pb.OnUpdateCatalogRequest) (*pb.OnUpdateCatalogResponse, error)
func (*GooglePlugin) OnUpdateSet ¶
func (p *GooglePlugin) OnUpdateSet(_ context.Context, req *pb.OnUpdateSetRequest) (*pb.OnUpdateSetResponse, error)
type SetAttributes ¶
Click to show internal directories.
Click to hide internal directories.