airshipctl/pkg/config
Rodolfo Pacheco a480527808 Introduces set_context and get_context operations
Each of these include an option for --current-context that set or retrieves
the curret context

This patchset mainly creates the cmd/config and pkg/config require additions

Also includes a fync getCurrentContext(<CLUSTERTYPE>)  in the config pkg
that other modules should rely on.

Introduces new  ErrMissingConfig and  ErrConfigFailed types been used by
set-context, will decimate through get/ and set/get cluster after this is
reviewed.

Change-Id: I501483a9db99f33f860eaf329a65bb0209b2aaff
2020-01-08 11:46:16 -05:00
..
testdata Introduces set_context and get_context operations 2020-01-08 11:46:16 -05:00
cmds_test.go Introduces set_context and get_context operations 2020-01-08 11:46:16 -05:00
cmds_types.go Introduces set_context and get_context operations 2020-01-08 11:46:16 -05:00
cmds.go Introduces set_context and get_context operations 2020-01-08 11:46:16 -05:00
config_test.go Introduces set_context and get_context operations 2020-01-08 11:46:16 -05:00
config.go Introduces set_context and get_context operations 2020-01-08 11:46:16 -05:00
constants.go Introduces set_context and get_context operations 2020-01-08 11:46:16 -05:00
test_utils.go Introduces set_context and get_context operations 2020-01-08 11:46:16 -05:00
types.go Introduces set_context and get_context operations 2020-01-08 11:46:16 -05:00
utils.go This commit prevents NewConfig from returning errors 2019-11-12 10:09:36 -06:00