packer-cn/vendor/github.com/yandex-cloud/go-sdk/gen/triggers/triggers_group.go

25 lines
553 B
Go

// Code generated by sdkgen. DO NOT EDIT.
package triggers
import (
"context"
"google.golang.org/grpc"
)
// Trigger provides access to "triggers" component of Yandex.Cloud
type Trigger struct {
getConn func(ctx context.Context) (*grpc.ClientConn, error)
}
// NewTrigger creates instance of Trigger
func NewTrigger(g func(ctx context.Context) (*grpc.ClientConn, error)) *Trigger {
return &Trigger{g}
}
// Trigger gets TriggerService client
func (t *Trigger) Trigger() *TriggerServiceClient {
return &TriggerServiceClient{getConn: t.getConn}
}