Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = status.Errorf(codes.NotFound, "Service not found")
)
Functions ¶
This section is empty.
Types ¶
type AppOperations ¶
type CloudProviderOperations ¶
type FakeAppOperations ¶
func (*FakeAppOperations) CheckPermAndGet ¶ added in v0.20.0
func (*FakeAppOperations) HasPermission ¶
func (f *FakeAppOperations) HasPermission(user *database.User, appName string) bool
type FakeCloudProviderOperations ¶
type FakeCloudProviderOperations struct { CreateOrUpdateSSLErr error SSLInfoErr error SSLInfoValue *SSLInfo }
func (*FakeCloudProviderOperations) CreateOrUpdateSSL ¶
func (f *FakeCloudProviderOperations) CreateOrUpdateSSL(appName, cert string, port int) error
type FakeK8sOperations ¶
type FakeK8sOperations struct { UpdateServicePortsErr error IsNotFoundErr bool ServicePortsErr error ServicePortsValue []*spec.ServicePort }
func (*FakeK8sOperations) IsNotFound ¶
func (f *FakeK8sOperations) IsNotFound(err error) bool
func (*FakeK8sOperations) ServicePorts ¶
func (f *FakeK8sOperations) ServicePorts(namespace, svcName string) ([]*spec.ServicePort, error)
func (*FakeK8sOperations) UpdateServicePorts ¶
func (f *FakeK8sOperations) UpdateServicePorts(namespace, svcName string, ports []spec.ServicePort) error
type FakeOperations ¶
type Info ¶
type Info struct { ServicePorts []*spec.ServicePort SSLInfo *SSLInfo }
type K8sOperations ¶
type K8sOperations interface { UpdateServicePorts(namespace, svcName string, ports []spec.ServicePort) error IsNotFound(err error) bool ServicePorts(namespace, svcName string) ([]*spec.ServicePort, error) }
type Operations ¶
type SSLInfo ¶
type SSLInfo struct { ServicePort *spec.ServicePort Cert string }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ops Operations) *Service
func (*Service) Info ¶
func (svc *Service) Info(ctx context.Context, req *svcpb.InfoRequest) (*svcpb.InfoResponse, error)
func (*Service) RegisterService ¶
type ServiceOperations ¶
type ServiceOperations struct {
// contains filtered or unexported fields
}
func NewOperations ¶
func NewOperations(aops AppOperations, cops CloudProviderOperations, k8s K8sOperations) *ServiceOperations
Click to show internal directories.
Click to hide internal directories.