dao

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: 5 Imported by: 0

Documentation

Overview

Package dao represents the Data Access Object Pattern or DAO pattern is used to separate low level data accessing API or operations from high level business services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredentialProfile

func GetCredentialProfile(name string) (model.CredentialProfile, error)

GetCredentialProfile returns credentials of a profile

func GetCredentials

func GetCredentials() (model.Credentials, error)

GetCredentials read the current credentials file and return its model

func GetOrganization

func GetOrganization(name string) string

GetOrganization return the team token

func GetOrganizationToken

func GetOrganizationToken(name string) string

GetOrganizationToken return the organization token from credentials file

func GetTeamToken

func GetTeamToken(name string) string

GetTeamToken return the team token

func GetUserToken

func GetUserToken(name string) string

GetUserToken return the team token

func SaveCredentials

func SaveCredentials(credentials model.Credentials) error

SaveCredentials saves the given credential onto the credentials file

Types

This section is empty.

Jump to

Keyboard shortcuts

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