kcc

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Menu(question string, style color.Color, options []string) int

func ReadString

func ReadString(question string, style color.Color, repeats int, validate func(string) bool) (*string, error)

func SimpleQuestion

func SimpleQuestion(question string, style color.Color) bool

Types

type BluePrint

type BluePrint struct {
	BlueprintID string `json:"blueprintID"`
	ClientId    string `json:"clientId"`
	RedirectURI string `json:"defaultRedirectUri"`
}

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

type KeyMessage

type KeyMessage struct {
	Algo string `json:"algorithm"`
	Key  string `json:"key"`
	CRC  uint32 `json:"crc"`
}

type UserConfig

type UserConfig struct {
	Username string   `json:"username"`
	Password string   `json:"password"`
	Roles    []string `json:"realmRoles"`
}

Jump to

Keyboard shortcuts

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