model

package
v0.0.0-...-59f78f7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package model represents an object carrying data. It can also have logic to update controller if its data changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// Name of file to look for inside the path
	Name                       string
	ConfigurationsDir          string
	CredentialsFileName        string
	CredentialsFileType        string
	CredentialsFilePath        string
	CredentialsFilePermissions os.FileMode
	LogsDir                    string
	LogsFileName               string
	LogsFileType               string
	LogsFilePath               string
	LogsFilePermissions        os.FileMode

	WorkingDir string
}

App represents the all the necessary information about tecli

type CredentialProfile

type CredentialProfile struct {
	Name              string `yaml:"name"`
	Description       string `yaml:"description,omitempty"`
	Organization      string `yaml:"organization"`
	UserToken         string `yaml:"userToken"`
	TeamToken         string `yaml:"teamToken"`
	OrganizationToken string `yaml:"organizationToken"`
}

CredentialProfile model

type Credentials

type Credentials struct {
	Profiles []CredentialProfile `yaml:"profiles"`
}

Credentials model

Jump to

Keyboard shortcuts

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