Documentation ¶
Overview ¶
* Copyright 2018 Information Systems Engineering, TU Berlin, Germany * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This is being developed for the DITAS Project: https://www.ditas-project.eu/
* Copyright 2018 Information Systems Engineering, TU Berlin, Germany * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This is being developed for the DITAS Project: https://www.ditas-project.eu/
* Copyright 2018 Information Systems Engineering, TU Berlin, Germany * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This is being developed for the DITAS Project: https://www.ditas-project.eu/
Index ¶
- func Menu(question string, style color.Color, options []string) int
- func ReadString(question string, style color.Color, repeats int, validate func(string) bool) (*string, error)
- func SimpleQuestion(question string, style color.Color) bool
- type BluePrint
- type Config
- type ConfigClient
- type KeyMessage
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadString ¶
func SimpleQuestion ¶
Types ¶
type Config ¶
type Config struct { BlueprintID string `json:"blueprintID"` Roles []string `json:"roles"` Users []UserConfig `json:"users"` }
type ConfigClient ¶
type ConfigClient struct {
// contains filtered or unexported fields
}
func NewKCC ¶
func NewKCC(endpoint string) (client *ConfigClient, err error)
func (*ConfigClient) SendBlueprint ¶
func (client *ConfigClient) SendBlueprint(blueprint BluePrint) error
func (*ConfigClient) SendConfig ¶
func (client *ConfigClient) SendConfig(config Config) error