server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxGRPCMessageSize contains max grpc message size
	MaxGRPCMessageSize = 100 * 1024 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgoRolloutsServer

type ArgoRolloutsServer struct {
	Options     ServerOptions
	NamespaceVC NamespaceViewController
	// contains filtered or unexported fields
}

ArgoRolloutsServer holds information about rollouts server

func NewServer

func NewServer(o ServerOptions) *ArgoRolloutsServer

NewServer creates an ArgoRolloutsServer

func (*ArgoRolloutsServer) AbortRollout

func (*ArgoRolloutsServer) GetNamespace

func (s *ArgoRolloutsServer) GetNamespace(ctx context.Context, e *empty.Empty) (*rollout.NamespaceInfo, error)

func (*ArgoRolloutsServer) GetRolloutInfo

GetRollout returns a rollout

func (*ArgoRolloutsServer) ListReplicaSetsAndPods

func (s *ArgoRolloutsServer) ListReplicaSetsAndPods(ctx context.Context) ([]*appsv1.ReplicaSet, []*corev1.Pod, error)

func (*ArgoRolloutsServer) ListRolloutInfos

ListRollouts returns a list of all rollouts

func (*ArgoRolloutsServer) PromoteRollout

func (*ArgoRolloutsServer) RestartRollout

func (*ArgoRolloutsServer) RetryRollout

func (*ArgoRolloutsServer) RolloutToRolloutInfo

func (s *ArgoRolloutsServer) RolloutToRolloutInfo(ro *v1alpha1.Rollout) (*rollout.RolloutInfo, error)

func (*ArgoRolloutsServer) Run

func (s *ArgoRolloutsServer) Run(ctx context.Context, port int, dashboard bool)

Run starts the server

func (*ArgoRolloutsServer) SetRolloutImage

func (*ArgoRolloutsServer) UndoRollout

func (*ArgoRolloutsServer) Version

func (*ArgoRolloutsServer) WatchRolloutInfo

WatchRollout returns a rollout stream

func (*ArgoRolloutsServer) WatchRolloutInfos

WatchRollouts returns a stream of all rollouts

type NamespaceViewController

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

func (*NamespaceViewController) Start

func (vc *NamespaceViewController) Start(ctx context.Context)

type ServerOptions

type ServerOptions struct {
	KubeClientset     kubernetes.Interface
	RolloutsClientset rolloutclientset.Interface
	DynamicClientset  dynamic.Interface
	Namespace         string
}

Jump to

Keyboard shortcuts

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