client

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const Always = "Always"
View Source
const OnFailure = "OnFailure"
View Source
const RWO = "ReadWriteOnce"

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(kclient *kubego.Kube, iclient *kubego.Istio, logger *logger.Logger, rootUsers []string, userInfoEndpoint string, authorizers []*trigger.Decision) *Manager

func (*Manager) CreateApp

func (m *Manager) CreateApp(ctx context.Context, app *kdeploypb.AppInput) (*kdeploypb.App, error)

func (*Manager) CreateGateway added in v0.0.9

func (m *Manager) CreateGateway(ctx context.Context, gateway *kdeploypb.GatewayInput) (*kdeploypb.Gateway, error)

func (*Manager) CreateTask added in v0.0.1

func (m *Manager) CreateTask(ctx context.Context, task *kdeploypb.TaskInput) (*kdeploypb.Task, error)

func (*Manager) DeleteAll added in v0.0.1

func (m *Manager) DeleteAll(ctx context.Context, ref *kdeploypb.Namespace) error

func (*Manager) DeleteApp

func (m *Manager) DeleteApp(ctx context.Context, ref *kdeploypb.Ref) error

func (*Manager) DeleteGateway added in v0.0.9

func (m *Manager) DeleteGateway(ctx context.Context, ref *kdeploypb.Ref) error

func (*Manager) DeleteTask added in v0.0.1

func (m *Manager) DeleteTask(ctx context.Context, ref *kdeploypb.Ref) error

func (*Manager) GetApp

func (m *Manager) GetApp(ctx context.Context, ref *kdeploypb.Ref) (*kdeploypb.App, error)

func (*Manager) GetGateway added in v0.0.9

func (m *Manager) GetGateway(ctx context.Context, ref *kdeploypb.Ref) (*kdeploypb.Gateway, error)

func (*Manager) GetJWTHash

func (r *Manager) GetJWTHash(hash string) (interface{}, bool)

func (*Manager) GetTask added in v0.0.1

func (m *Manager) GetTask(ctx context.Context, ref *kdeploypb.Ref) (*kdeploypb.Task, error)

func (*Manager) GetUserInfo

func (r *Manager) GetUserInfo(ctx context.Context) map[string]interface{}

func (*Manager) L

func (m *Manager) L() *logger.Logger

func (*Manager) ListApps

func (m *Manager) ListApps(ctx context.Context, namespace *kdeploypb.Namespace) (*kdeploypb.Apps, error)

func (*Manager) ListNamespaces

func (m *Manager) ListNamespaces(ctx context.Context) (*kdeploypb.Namespaces, error)

func (*Manager) ListTasks added in v0.0.1

func (m *Manager) ListTasks(ctx context.Context, namespace *kdeploypb.Namespace) (*kdeploypb.Tasks, error)

func (*Manager) SetJWTHash

func (r *Manager) SetJWTHash(hash string, userInfo map[string]interface{})

func (*Manager) SetUserInfo

func (r *Manager) SetUserInfo(ctx context.Context, userInfoData map[string]interface{}) context.Context

func (*Manager) StreamInterceptor

func (c *Manager) StreamInterceptor() grpc.StreamServerInterceptor

func (*Manager) StreamLogs

func (m *Manager) StreamLogs(ctx context.Context, ref *kdeploypb.Ref) (chan string, error)

func (*Manager) UnaryInterceptor

func (c *Manager) UnaryInterceptor() grpc.UnaryServerInterceptor

func (*Manager) UpdateApp

func (m *Manager) UpdateApp(ctx context.Context, app *kdeploypb.AppInput) (*kdeploypb.App, error)

func (*Manager) UpdateGateway added in v0.0.9

func (m *Manager) UpdateGateway(ctx context.Context, gateway *kdeploypb.GatewayInput) (*kdeploypb.Gateway, error)

func (*Manager) UpdateTask added in v0.0.1

func (m *Manager) UpdateTask(ctx context.Context, task *kdeploypb.TaskInput) (*kdeploypb.Task, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL