blob: e745e543d56bf64210aee7b10fa1000f9cb4a379 [file] [log] [blame]
Hendrik Hofstadt0d7c91e2019-10-23 21:44:47 +02001// Copyright 2020 The Monogon Project Authors.
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17package common
18
19type (
Hendrik Hofstadt0d7c91e2019-10-23 21:44:47 +020020 SmalltownState string
21)
22
23const (
Lorenz Brunaa6b7342019-12-12 02:55:02 +010024 // These are here to prevent depdendency loops
25 NodeServicePort = 7835
26 ConsensusPort = 7834
27 MasterServicePort = 7833
28 ExternalServicePort = 7836
29)
30
31const (
32 // Node is provisioning a new cluster with itself as a master
33 StateNewClusterMode SmalltownState = "setup"
34 // Node is enrolling itself and waiting to be adopted
35 StateEnrollMode SmalltownState = "join"
Leopold Schabel68c58752019-11-14 21:00:59 +010036 // Node is fully provisioned.
Lorenz Brunaa6b7342019-12-12 02:55:02 +010037 StateJoined SmalltownState = "enrolled"
Hendrik Hofstadt0d7c91e2019-10-23 21:44:47 +020038)