Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKubeconfigNotSet = errors.New("kubeconfig is not set")
ErrKubeconfigNotSet represents error when kubeconfig is empty string
View Source
var ErrNotSet = errors.New("kubernetes Bee client not set")
ErrNotSet represents error when Kubernetes Bee client is not set
Functions ¶
This section is empty.
Types ¶
type Bee ¶ added in v0.4.7
type Bee interface {
Create(ctx context.Context, o CreateOptions) (err error)
Delete(ctx context.Context, name, namespace string) (err error)
Ready(ctx context.Context, name, namespace string) (ready bool, err error)
RunningNodes(ctx context.Context, namespace string) (running []string, err error)
Start(ctx context.Context, name, namespace string) (err error)
Stop(ctx context.Context, name, namespace string) (err error)
StoppedNodes(ctx context.Context, namespace string) (stopped []string, err error)
}
Bee represents Bee implementation in Kubernetes
type Client ¶
type Client struct {
// Services that K8S provides
ConfigMap *configmap.Client
Ingress *ingress.Client
Namespace *namespace.Client
Pods *pod.Client
PVC *persistentvolumeclaim.Client
Secret *secret.Client
ServiceAccount *serviceaccount.Client
Service *service.Client
StatefulSet *statefulset.Client
// contains filtered or unexported fields
}
Client manages communication with the Kubernetes
func NewClient ¶
func NewClient(o *ClientOptions) (c *Client, err error)
NewClient returns Kubernetes clientset
type ClientOptions ¶
ClientOptions holds optional parameters for the Client.
type Config ¶ added in v0.4.7
type Config struct {
APIAddr string // HTTP API listen address
Bootnodes string // initial nodes to connect to
ClefSignerEnable bool // enable clef signer
ClefSignerEndpoint string // clef signer endpoint
CORSAllowedOrigins string // origins with CORS headers enabled
DataDir string // data directory
DBCapacity uint64 // db capacity in chunks, multiply by 4096 (MaxChunkSize) to get approximate capacity in bytes
DebugAPIAddr string // debug HTTP API listen address
DebugAPIEnable bool // enable debug HTTP API
GatewayMode bool // disable a set of sensitive features in the api
GlobalPinningEnabled bool // enable global pinning
NATAddr string // NAT exposed address
NetworkID uint64 // ID of the Swarm network
P2PAddr string // P2P listen address
P2PQUICEnable bool // enable P2P QUIC transport
P2PWSEnable bool // enable P2P WebSocket transport
Password string // password for decrypting keys
PaymentEarly uint64 // amount in BZZ below the peers payment threshold when we initiate settlement
PaymentThreshold uint64 // threshold in BZZ where you expect to get paid from your peers
PaymentTolerance uint64 // excess debt above payment threshold in BZZ where you disconnect from your peer
PostageStampAddress string // postage stamp address
PriceOracleAddress string // price Oracle address
ResolverOptions string // ENS compatible API endpoint for a TLD and with contract address, can be repeated, format [tld:][contract-addr@]url
Standalone bool // whether we want the node to start with no listen addresses for p2p
SwapEnable bool // enable swap
SwapEndpoint string // swap ethereum blockchain endpoint
SwapFactoryAddress string // swap factory address
SwapInitialDeposit uint64 // initial deposit if deploying a new chequebook
TracingEnabled bool // enable tracing
TracingEndpoint string // endpoint to send tracing data
TracingServiceName string // service name identifier for tracing
Verbosity uint64 // log verbosity level 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace
WelcomeMessage string // send a welcome message string during handshakes
}
Config represents Bee configuration
type CreateOptions ¶ added in v0.4.7
type CreateOptions struct {
// Bee configuration
Config Config
// Kubernetes configuration
Name string
Namespace string
Annotations map[string]string
ClefImage string
ClefImagePullPolicy string
ClefKey string
ClefPassword string
Labels map[string]string
LimitCPU string
LimitMemory string
Image string
ImagePullPolicy string
IngressAnnotations map[string]string
IngressHost string
IngressDebugAnnotations map[string]string
IngressDebugHost string
LibP2PKey string
NodeSelector map[string]string
PersistenceEnabled bool
PersistenceStorageClass string
PersistanceStorageRequest string
PodManagementPolicy string
RestartPolicy string
RequestCPU string
RequestMemory string
Selector map[string]string
SwarmKey string
UpdateStrategy string
}
CreateOptions represents available options for creating node
Click to show internal directories.
Click to hide internal directories.