Documentation ¶
Index ¶
- Constants
- Variables
- func ActivityToStringArray() []string
- func GetAuthLoginLinkFromEnv() string
- type Environment
- func (env *Environment) AddAutoRegisterActivity(activities ...string)
- func (env *Environment) AddAutoRegisterCalendarActivity(activities ...string)
- func (env Environment) AddEvent(activity blueprint.CourseActivity)
- func (env Environment) AddModule(module blueprint.CourseSummary, project blueprint.CourseActivity) error
- func (env Environment) Error(msg ...interface{})
- func (env Environment) Errorf(msg string, fmt ...interface{})
- func (env Environment) Fatal()
- func (env Environment) GetAuthentication() string
- func (env Environment) GetVerboseLevel() VerboseLevel
- func (env Environment) IsAutoCalendarRegisteredActivity(activityName string) bool
- func (env Environment) IsAutoRegisteredActivity(activityName string) bool
- func (env Environment) Log(level VerboseLevel, msg ...interface{})
- func (env Environment) Logf(level VerboseLevel, msg string, format ...interface{})
- func (env Environment) RemoveEvent(title string)
- func (env *Environment) SetUpCalendar()
- func (env Environment) SetVerboseLevel(level VerboseLevel)
- type Flag
- type GoogleCalendar
- type UserData
- type VerboseLevel
Constants ¶
View Source
const ( ColorReset = "\x1B[0m" ColorRed = "\x1B[1;31m" ColorGreen = "\x1B[1;32m" ColorYellow = "\x1B[1;33m" ColorBrightYellow = "\x1B[1;93m" ColorBlue = "\x1B[1;34m" ColorMagenta = "\x1B[1;35m" ColorCyan = "\x1B[1;36m" ColorWhite = "\u001B[1;37m" )
View Source
const ( VerboseSimple = iota + 1 VerboseMedium = VerboseSimple + 1 VerboseDebug = VerboseMedium + 1 VerboseDefault = VerboseDebug )
View Source
const (
EpiScheduleCalendarName = "Epitech Schedule"
)
View Source
const (
ProjectName = "EpiSchedule"
)
Variables ¶
View Source
var AvailableActivity = make(map[string]string)
Functions ¶
func ActivityToStringArray ¶
func ActivityToStringArray() []string
func GetAuthLoginLinkFromEnv ¶
func GetAuthLoginLinkFromEnv() string
Types ¶
type Environment ¶
type Environment struct { Client *http.Client User UserData Flag Flag // contains filtered or unexported fields }
func NewEnvironment ¶
func NewEnvironment() Environment
func (*Environment) AddAutoRegisterActivity ¶
func (env *Environment) AddAutoRegisterActivity(activities ...string)
func (*Environment) AddAutoRegisterCalendarActivity ¶
func (env *Environment) AddAutoRegisterCalendarActivity(activities ...string)
func (Environment) AddEvent ¶
func (env Environment) AddEvent(activity blueprint.CourseActivity)
func (Environment) AddModule ¶
func (env Environment) AddModule(module blueprint.CourseSummary, project blueprint.CourseActivity) error
func (Environment) Error ¶
func (env Environment) Error(msg ...interface{})
func (Environment) Errorf ¶
func (env Environment) Errorf(msg string, fmt ...interface{})
func (Environment) Fatal ¶
func (env Environment) Fatal()
func (Environment) GetAuthentication ¶
func (env Environment) GetAuthentication() string
func (Environment) GetVerboseLevel ¶
func (env Environment) GetVerboseLevel() VerboseLevel
func (Environment) IsAutoCalendarRegisteredActivity ¶
func (env Environment) IsAutoCalendarRegisteredActivity(activityName string) bool
func (Environment) IsAutoRegisteredActivity ¶
func (env Environment) IsAutoRegisteredActivity(activityName string) bool
func (Environment) Log ¶
func (env Environment) Log(level VerboseLevel, msg ...interface{})
func (Environment) Logf ¶
func (env Environment) Logf(level VerboseLevel, msg string, format ...interface{})
func (Environment) RemoveEvent ¶
func (env Environment) RemoveEvent(title string)
func (*Environment) SetUpCalendar ¶
func (env *Environment) SetUpCalendar()
func (Environment) SetVerboseLevel ¶
func (env Environment) SetVerboseLevel(level VerboseLevel)
type GoogleCalendar ¶
type GoogleCalendar struct {
// contains filtered or unexported fields
}
type VerboseLevel ¶
type VerboseLevel uint
Source Files ¶
Click to show internal directories.
Click to hide internal directories.